@Override
  public final int read(byte[] buffer) throws IOException {
    return in.read(buffer, 0, buffer.length);
  }
Reads bytes from the source stream into the byte array <code>buffer</code>.
The number of bytes actually read is returned.

@param buffer
         the buffer to read bytes into
@return the number of bytes actually read or -1 if end of stream.

@throws IOException
          If a problem occurs reading from this DataInputStream.
ql/src/java/org/apache/hadoop/hive/ql/io/NonSyncDataInputBuffer.java