Class ByteBufferUtil

java.lang.Object
org.apache.hadoop.fs.ByteBufferUtil

@Private @Evolving public final class ByteBufferUtil extends Object
  • Constructor Details

    • ByteBufferUtil

      public ByteBufferUtil()
  • Method Details

    • fallbackRead

      public static ByteBuffer fallbackRead(InputStream stream, ByteBufferPool bufferPool, int maxLength) throws IOException
      Perform a fallback read.
      Parameters:
      stream - input stream.
      bufferPool - bufferPool.
      maxLength - maxLength.
      Returns:
      byte buffer.
      Throws:
      IOException - raised on errors performing I/O.