public static class LeveldbUtils.KeyParser extends Object
| Constructor and Description |
|---|
KeyParser(byte[] b,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
long |
getNextLong()
Read the next 8 bytes in the byte buffer as a long.
|
String |
getNextString()
Returns a string from the offset until the next string delimiter.
|
int |
getOffset() |
byte[] |
getRemainingBytes()
Returns a copy of the remaining bytes.
|
void |
skipNextString()
Moves current position until after the next end of string marker.
|
public String getNextString() throws IOException
IOExceptionpublic void skipNextString()
throws IOException
IOExceptionpublic long getNextLong()
throws IOException
IOExceptionpublic int getOffset()
public byte[] getRemainingBytes()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.