|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.tools.WriteBytesToFile
public class WriteBytesToFile
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 | |
---|---|
WriteBytesToFile()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Writes a large number of bytes to a given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WriteBytesToFile()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
args
- args[0] is the number of bytes to write
args[1] the name of the output file
java.io.IOException
- If unable to write to output file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |