|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.vajhoej.record.StructReader
public class StructReader
Class StructReader reads a Java object from a byte array containing a native struct.
| Constructor Summary | |
|---|---|
StructReader(byte[] ba)
Create instance of StructReader. |
|
| Method Summary | ||
|---|---|---|
boolean |
more()
More records available. |
|
|
read(java.lang.Class<T> t)
Read. |
|
|
read(java.lang.Class<T> t,
LengthProvider lenpvd)
Read. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StructReader(byte[] ba)
ba - byte array to read from| Method Detail |
|---|
public <T> T read(java.lang.Class<T> t)
throws RecordException
t - class of what to read
RecordException - if impossible to convert between types in class and struct
public <T> T read(java.lang.Class<T> t,
LengthProvider lenpvd)
throws RecordException
t - class of what to readlenpvd - supplies length for fields where it is not given
RecordException - if impossible to convert between types in class and structpublic boolean more()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||