|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsefa.rbf.RbfDeserializerImpl
public abstract class RbfDeserializerImpl
Abstract implementation of RbfDeserializer for RBF types.
| Constructor Summary | |
|---|---|
protected |
RbfDeserializerImpl(RbfConfiguration<?> config,
Map<String,RbfEntryPoint> entryPointsByPrefixes)
Constructs a new AbstractRbfDeserializer. |
protected |
RbfDeserializerImpl(RbfConfiguration<?> config,
RbfEntryPoint entryPoint)
Constructs a new AbstractRbfDeserializer. |
| Method Summary | ||
|---|---|---|
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. |
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RbfDeserializerImpl(RbfConfiguration<?> config,
Map<String,RbfEntryPoint> entryPointsByPrefixes)
AbstractRbfDeserializer.
config - the configurationentryPointsByPrefixes - a map which maps prefixes to entry points
protected RbfDeserializerImpl(RbfConfiguration<?> config,
RbfEntryPoint entryPoint)
AbstractRbfDeserializer.
config - the configurationentryPoint - the entry point| Method Detail |
|---|
public 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 object
public 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 mapping
protected abstract String readPrefix()
protected abstract RbfLowLevelDeserializer getLowLevelDeserializer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||