|
|||||||||
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,
InfoProvider lenpvd)
Read. |
|
|
read(java.lang.Class<T> t,
LengthProvider lenpvd)
Read. |
|
|
read(java.lang.Class<T> t,
LengthProvider2 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 fromMethod 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 structpublic <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 (null indicates that it is to be ignored)
RecordException
- if impossible to convert between types in class and structpublic <T> T read(java.lang.Class<T> t, LengthProvider2 lenpvd) throws RecordException
t
- class of what to readlenpvd
- supplies length for fields where it is not given (null indicates that it is to be ignored)
RecordException
- if impossible to convert between types in class and structpublic <T> T read(java.lang.Class<T> t, InfoProvider lenpvd) throws RecordException
t
- class of what to readlenpvd
- supplies various length'es where they are not given (null indicates that it is to be ignored)
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 |