|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.vajhoej.record.StructWriter
public class StructWriter
Class StructWriter writes a Java object to a byte array as a native struct.
| Constructor Summary | |
|---|---|
StructWriter()
Construct instance of StructWriter with default buffer size. |
|
StructWriter(int bufsiz)
Construct instance of StructWriter. |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Get bytes. |
void |
write(java.lang.Object o)
Write. |
void |
write(java.lang.Object o,
LengthProvider lenpvd)
Write. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructWriter()
public StructWriter(int bufsiz)
bufsiz - size of byte array to write to| Method Detail |
|---|
public void write(java.lang.Object o)
throws RecordException
o - object to write
RecordException - if impossible to convert between types in class and struct
public void write(java.lang.Object o,
LengthProvider lenpvd)
throws RecordException
o - object to writelenpvd - supplies length for fields where it is not given
RecordException - if impossible to convert between types in class and structpublic byte[] getBytes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||