net.sf.jsefa.csv
Class CsvDeserializerImpl

java.lang.Object
  extended by net.sf.jsefa.rbf.RbfDeserializerImpl
      extended by net.sf.jsefa.csv.CsvDeserializerImpl
All Implemented Interfaces:
CsvDeserializer, Deserializer, RbfDeserializer

public final class CsvDeserializerImpl
extends RbfDeserializerImpl
implements CsvDeserializer

Default implementation of CsvDeserializer based on RbfDeserializerImpl.

Author:
Norman Lahme-Huetig

Method Summary
protected  CsvLowLevelDeserializer getLowLevelDeserializer()
          Returns the low level deserializer.
protected  String readPrefix()
          Reads the prefix of the current record from the stream.
protected  Object readSimpleValue(SimpleTypeMapping<?> typeMapping)
          Reads a simple value from the stream using the given type mapping.
 
Methods inherited from class net.sf.jsefa.rbf.RbfDeserializerImpl
close, getInputPosition, getStoredLines, hasNext, next, open
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jsefa.rbf.RbfDeserializer
getStoredLines
 
Methods inherited from interface net.sf.jsefa.Deserializer
close, getInputPosition, hasNext, next, open
 

Method Detail

readSimpleValue

protected Object readSimpleValue(SimpleTypeMapping<?> typeMapping)
Reads a simple value from the stream using the given type mapping.

Specified by:
readSimpleValue in class RbfDeserializerImpl
Parameters:
typeMapping - the type mapping
Returns:
a simple value

readPrefix

protected String readPrefix()
Reads the prefix of the current record from the stream.

Specified by:
readPrefix in class RbfDeserializerImpl
Returns:
a prefix

getLowLevelDeserializer

protected CsvLowLevelDeserializer getLowLevelDeserializer()
Returns the low level deserializer.

Specified by:
getLowLevelDeserializer in class RbfDeserializerImpl
Returns:
the low level deserializer.


Copyright © 2014. All rights reserved.