java - Most efficient way to create a large file (> 1GB) -


i know efficient way create large dummy file in java. filesize should above 1gb. used unit test method accepts files <= 1gb.

create sparse file. is, open file, seek position above 1gb , write bytes.

relevant: create file given size in java


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -