예제 #1
0
 /*
  * Reads and returns an array of bytes from the file.
  *
  */
 public byte[] readBytes(TiffIFDEntry entry) throws IOException {
   byte[] bytes = new byte[(int) entry.count];
   ByteBuffer buff = ByteBuffer.wrap(bytes);
   this.theChannel.position(entry.asOffset());
   this.theChannel.read(buff);
   return bytes;
 }