- newPosition
- the new file position, in bytes.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if the new position is negative. Java.Nio.Channels.ClosedChannelException if this channel is closed. Java.IO.IOException if another I/O error occurs.
Sets the file position pointer to a new value.
The argument is the number of bytes counted from the start of the file. The position cannot be set to a value that is negative. The new position can be set beyond the current file size. If set beyond the current file size, attempts to read will return end of file. Write operations will succeed but they will fill the bytes between the current end of file and the new position with the required number of (unspecified) byte values.