|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.acorn.io.RecordReader
public class RecordReader
A buffered reader for reading records.
Constructor Summary | |
---|---|
RecordReader()
Constructs an empty record reader. |
|
RecordReader(byte[] rec)
Constructs a new record reader. |
Method Summary | |
---|---|
DataInputStream |
getDataInputStream()
Gets a data input stream. |
InputStream |
getInputStream()
Gets an input stream. |
ObjectInputStream |
getObjectInputStream()
Gets an object input stream. |
byte[] |
getRecord()
Gets the record. |
Object |
readObject()
Reads an object. |
String |
readUTF()
Reads an UTF string. |
void |
setRecord(byte[] rec)
Sets the record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordReader()
public RecordReader(byte[] rec)
rec
- the data record.Method Detail |
---|
public byte[] getRecord()
public void setRecord(byte[] rec)
rec
- the data record.public InputStream getInputStream()
public ObjectInputStream getObjectInputStream() throws IOException
IOException
- on errors.public DataInputStream getDataInputStream()
public Object readObject() throws IOException, OptionalDataException, ClassNotFoundException
IOException
- on I/O errors.
OptionalDataException
- for primitive data.
ClassNotFoundException
- for missing classes.public String readUTF() throws IOException
IOException
- on I/O errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |