コード例 #1
0
 /** @return The current position in the file */
 public long getFilePointer() {
   return channel.position();
 }
コード例 #2
0
 /**
  * Seeks to position <tt>pos</tt> within the file.
  *
  * @param pos The position to which to seek
  * @throws IOException
  */
 public void seek(long pos) throws IOException {
   channel.position(pos);
 }