Method setLength(long newLength)
Return type: void
Member of: java.io.RandomAccessFile
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 file.setLength(0);
2 randFile.setLength(randFile.getFilePointer());
3 file.setLength(length);
4 mRAF.setLength(size);
5 file.setLength(FIRSTNODE_LOC);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.