Package org.apache.hadoop.fs
Class ByteBufferUtil
java.lang.Object
org.apache.hadoop.fs.ByteBufferUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBufferfallbackRead(InputStream stream, ByteBufferPool bufferPool, int maxLength) Perform a fallback read.
-
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.
-