Package dk.netarkivet.common.tools
Class WriteBytesToFile
- java.lang.Object
-
- dk.netarkivet.common.tools.WriteBytesToFile
-
public class WriteBytesToFile extends Object
A class with a method for creating large files. Bruce Eckel's solution (http://www.java2s.com/ExampleCode/File-Input-Output/Creatingaverylargefileusingmapping.htm) is slightly slower!
-
-
Constructor Summary
Constructors Constructor Description WriteBytesToFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Writes a large number of bytes to a given file.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
Writes a large number of bytes to a given file.- Parameters:
args
- args[0] is the number of bytes to write args[1] the name of the output file- Throws:
IOException
- If unable to write to output file
-
-