org.apache.jute
Class RecordReader
java.lang.Object
org.apache.jute.RecordReader
public class RecordReader
- extends Object
Front-end interface to deserializers. Also acts as a factory
for deserializers.
Method Summary |
void |
read(Record r)
Deserialize a record |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordReader
public RecordReader(InputStream in,
String format)
throws IOException
- Creates a new instance of RecordReader.
- Parameters:
in
- Stream from which to deserialize a recordformat
- Deserialization format ("binary", "xml", or "csv")
- Throws:
IOException
read
public void read(Record r)
throws IOException
- Deserialize a record
- Parameters:
r
- Record to be deserialized
- Throws:
IOException