public abstract class CompactWriter extends Object
| Constructor and Description |
|---|
CompactWriter()
|
| Modifier and Type | Method and Description |
|---|---|
static long |
encodeZigZag(long n)
|
static int |
getNumberOfBytesSigned(long value)
|
abstract void |
write(byte[] bytes)
|
abstract void |
writeByte(int b)
|
void |
writeString(String
|
void |
writeVariableLengthSignedInteger(long value)
|
public abstract void writeByte(int b)
throws IOException
IOException
public abstract void write(byte[] bytes)
throws IOException
IOException
public void writeVariableLengthSignedInteger(long value)
throws IOException
IOException
public static long encodeZigZag(long n)
public static int getNumberOfBytesSigned(long value)
public void writeString(Stringstring) throws IOException
IOException