Public Member Functions | |
String | toString () |
int | available () |
void | reset () |
Protected Member Functions | |
PackFormatInputStream (String format) | |
char | getType () throws WiredTigerPackingException |
void | checkType (char asking, boolean consume) throws WiredTigerPackingException |
void | consume () |
int | getLengthFromFormat (boolean advance) |
boolean | hasLength () |
Protected Attributes | |
String | format |
int | formatOff |
int | formatRepeatCount |
An internal helper class for consuming pack format strings.
Applications should not need to use this class.
|
protected |
Constructor for a format stream.
format | the encoded format backing string. |
int com.wiredtiger.db.PackFormatInputStream.available | ( | ) |
Returns the approximate count of elements left in the format. This method does not account for repeat counts or string length encodings - so should be used as a guide only.
|
protected |
Check to see if the next entry is compatible with the requested type.
asking | the format type to match. |
consume | indicates whether to update the stream position. |
|
protected |
Move the format stream position ahead one position.
|
protected |
Retrieve a length from the format string. Either for a repeat count or a string length. Return one if no explicit repeat count.
advance | whether to move the stream position. |
|
protected |
Return the decoded type for the next entry in the format stream. Does not adjust the position of the stream.
|
protected |
Return whether there is an explicit length indicated in the format string.
void com.wiredtiger.db.PackFormatInputStream.reset | ( | ) |
Reset the current stream position.
String com.wiredtiger.db.PackFormatInputStream.toString | ( | ) |
Standard toString - returns the string used during construction.