Interface ByteBufferBackedDataInput
-
- All Superinterfaces:
DataInput
- All Known Subinterfaces:
FileInput
- All Known Implementing Classes:
ByteBufferBackedDataInputImpl,FileInput.Crc32CheckingFileInput,SimpleFileInput
public interface ByteBufferBackedDataInput extends DataInput
ByteBuffer backed data input
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferbuffer()voidensure(int requested)ensure that requested count of byte is available in data input and will try to load data if not-
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
-
-
-
Method Detail
-
buffer
ByteBuffer buffer()
- Returns:
- ByteBuffer hold by data input
-
ensure
void ensure(int requested) throws IOExceptionensure that requested count of byte is available in data input and will try to load data if not- Parameters:
requested- Requested number of bytes.- Throws:
IOException- If failed.
-
-