public abstract class RbfDeserializerImpl extends Object implements RbfDeserializer
RbfDeserializer for RBF types.| Modifier | Constructor and Description |
|---|---|
protected |
RbfDeserializerImpl(RbfConfiguration<?> config,
Map<String,RbfEntryPoint> entryPointsByPrefixes)
Constructs a new
AbstractRbfDeserializer. |
protected |
RbfDeserializerImpl(RbfConfiguration<?> config,
RbfEntryPoint entryPoint)
Constructs a new
AbstractRbfDeserializer. |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean closeReader)
Closes the deserialization stream.
|
InputPosition |
getInputPosition()
Returns information about the current position within the input stream.
|
protected abstract RbfLowLevelDeserializer |
getLowLevelDeserializer()
Returns the low level deserializer.
|
List<Line> |
getStoredLines()
Returns a list of lines stored during deserialization.
|
boolean |
hasNext()
Returns true if another object can be deserialized from the stream.
|
<T> T |
next()
Deserializes an object from the stream.
|
void |
open(Reader reader)
Opens a new deserialization stream based on the given reader.
|
protected abstract String |
readPrefix()
Reads the prefix of the current record from the stream.
|
protected abstract Object |
readSimpleValue(SimpleTypeMapping<?> typeMapping)
Reads a simple value from the stream using the given type mapping.
|
protected RbfDeserializerImpl(RbfConfiguration<?> config, Map<String,RbfEntryPoint> entryPointsByPrefixes)
AbstractRbfDeserializer.config - the configurationentryPointsByPrefixes - a map which maps prefixes to entry pointsprotected RbfDeserializerImpl(RbfConfiguration<?> config, RbfEntryPoint entryPoint)
AbstractRbfDeserializer.config - the configurationentryPoint - the entry pointpublic final void open(Reader reader)
open in interface Deserializerreader - the reader to base the stream on.public final boolean hasNext()
hasNext in interface Deserializerpublic final <T> T next()
next in interface DeserializerT - the expected type of the objectpublic final void close(boolean closeReader)
closeReader
is true.close in interface DeserializercloseReader - if true, the underlying reader will be closed, too.public final InputPosition getInputPosition()
getInputPosition in interface Deserializerpublic List<Line> getStoredLines()
getStoredLines in interface RbfDeserializerLineFilterprotected abstract Object readSimpleValue(SimpleTypeMapping<?> typeMapping)
typeMapping - the type mappingprotected abstract String readPrefix()
protected abstract RbfLowLevelDeserializer getLowLevelDeserializer()
Copyright © 2014. All rights reserved.