public interface DataInputPlus
extends java.io.DataInput
Modifier and Type | Interface and Description |
---|---|
static class |
DataInputPlus.DataInputStreamPlus
Wrapper around an InputStream that provides no buffering but can decode varints
TODO: probably shouldn't use DataInputStream as a parent
|
Modifier and Type | Method and Description |
---|---|
default long |
readUnsignedVInt()
Think hard before opting for an unsigned encoding.
|
default long |
readVInt() |
int |
skipBytes(int n)
Always skips the requested number of bytes, unless EOF is reached
|
default void |
skipBytesFully(int n) |
default long readVInt() throws java.io.IOException
java.io.IOException
default long readUnsignedVInt() throws java.io.IOException
java.io.IOException
int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
n
- number of bytes to skipjava.io.IOException
default void skipBytesFully(int n) throws java.io.IOException
java.io.IOException
Copyright © 2009- The Apache Software Foundation