public class BserDeserializer extends Object
https://facebook.github.io/watchman/docs/bser.html
Modifier and Type | Class and Description |
---|---|
static class |
BserDeserializer.BserEofException
Exception thrown when BSER parser unexpectedly reaches the end of the input stream.
|
static class |
BserDeserializer.KeyOrdering |
Constructor and Description |
---|
BserDeserializer(BserDeserializer.KeyOrdering keyOrdering)
If
keyOrdering is SORTED , any Map objects in the resulting value will
have their keys sorted in natural order. |
Modifier and Type | Method and Description |
---|---|
Object |
deserializeBserValue(InputStream inputStream)
Deserializes the next BSER-encoded value from the stream.
|
public BserDeserializer(BserDeserializer.KeyOrdering keyOrdering)
keyOrdering
is SORTED
, any Map
objects in the resulting value will
have their keys sorted in natural order. Otherwise, any Map
s will have their keys in
the same order with which they were encoded.@Nullable public Object deserializeBserValue(InputStream inputStream) throws IOException
String
, Number
, List
, Map
, or null
,
depending on the type of the top-level encoded object.IOException