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 Deserializer
reader
- the reader to base the stream on.public final boolean hasNext()
hasNext
in interface Deserializer
public final <T> T next()
next
in interface Deserializer
T
- the expected type of the objectpublic final void close(boolean closeReader)
closeReader
is true.close
in interface Deserializer
closeReader
- if true, the underlying reader will be closed, too.public final InputPosition getInputPosition()
getInputPosition
in interface Deserializer
public List<Line> getStoredLines()
getStoredLines
in interface RbfDeserializer
LineFilter
protected abstract Object readSimpleValue(SimpleTypeMapping<?> typeMapping)
typeMapping
- the type mappingprotected abstract String readPrefix()
protected abstract RbfLowLevelDeserializer getLowLevelDeserializer()
Copyright © 2014. All rights reserved.