|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.io.RecordWriter
public class RecordWriter
A buffered writer for writing records.
| Constructor Summary | |
|---|---|
RecordWriter()
Constructs a new writer. |
|
RecordWriter(byte[] rec)
Constructs a new writer with a record. |
|
RecordWriter(int size)
Constructs a new writer with size. |
|
| Method Summary | |
|---|---|
DataOutputStream |
getDataOutputStream()
Gets a data output stream. |
ObjectOutputStream |
getObjectOutputStream()
Gets an object output stream. |
OutputStream |
getOutputStream()
Gets an output stream. |
byte[] |
getRecord()
Gets the record. |
void |
reset()
Resets the buffer. |
void |
setRecord(byte[] rec)
Sets the record. |
int |
size()
Gets the buffer size. |
void |
writeObject(Object object)
Writes an object. |
void |
writeTo(DataOutput data,
int size)
Writes the buffer to another stream. |
void |
writeUTF(String string)
Writes an UTF string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordWriter()
public RecordWriter(int size)
size - the size.public RecordWriter(byte[] rec)
rec - the record.| Method Detail |
|---|
public byte[] getRecord()
public void setRecord(byte[] rec)
rec - the data record.public OutputStream getOutputStream()
public ObjectOutputStream getObjectOutputStream()
throws IOException
IOException - on errors.public DataOutputStream getDataOutputStream()
public void writeObject(Object object)
throws IOException
object - the object.
IOException - on errors.
public void writeUTF(String string)
throws IOException
string - the string.
IOException - on errors.public int size()
public void reset()
public void writeTo(DataOutput data,
int size)
throws IOException
data - the output stream.size - the size of the record.
IOException - on I/O errors.
IllegalStateException - if size does not correspond to buffer size.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||