net.sf.jsefa.common.lowlevel
Interface LowLevelDeserializer

All Known Subinterfaces:
CsvLowLevelDeserializer, FlrLowLevelDeserializer, RbfLowLevelDeserializer, XmlLowLevelDeserializer
All Known Implementing Classes:
CsvLowLevelDeserializerImpl, FlrLowLevelDeserializerImpl, RbfLowLevelDeserializerImpl, StaxBasedXmlLowLevelDeserializer, XmlPullBasedXmlLowLevelDeserializer

public interface LowLevelDeserializer

Interface for stream based low level deserializers.

Author:
Norman Lahme-Huetig

Method Summary
 void close(boolean closeReader)
          Closes the deserialization stream.
 InputPosition getInputPosition()
          Returns information about the current position within the input stream.
 void open(Reader reader)
          Opens a new deserialization stream based on the given reader.
 

Method Detail

open

void open(Reader reader)
Opens a new deserialization stream based on the given reader.

Parameters:
reader - the reader to base the stream on.
Throws:
LowLevelDeserializationException

close

void close(boolean closeReader)
Closes the deserialization stream. The underlying reader will be closed only if closeReader is true.

Parameters:
closeReader - if true, the underlying reader will be closed, too.
Throws:
LowLevelDeserializationException

getInputPosition

InputPosition getInputPosition()
Returns information about the current position within the input stream.

Returns:
the input position or null if no position information is available


Copyright © 2014. All rights reserved.