|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--anvil.core.Unserializer
Class for wrapping byte array and pointer to it.
| Constructor Summary | |
protected |
Unserializer(Context context,
byte[] data)
|
protected |
Unserializer(Context context,
byte[] data,
int begin,
int end)
|
| Method Summary | |
void |
back()
|
void |
close()
|
void |
consume(int ch)
|
boolean |
consumeIf(int ch)
|
java.lang.Object |
consumeRegisteredIf()
|
int |
get()
|
java.lang.String |
getBinaryString()
|
char |
getCharUTF16()
|
Context |
getContext()
|
double |
getDouble()
Helper method for unserializing Double. |
float |
getFloat()
Helper method for unserializing float. |
long |
getLong()
Helper method for unserializing integer. |
java.lang.String |
getUTF16String()
Helper method for unserializing String. |
java.lang.String |
getView()
|
int |
peek()
|
void |
register(java.lang.Object o)
|
Any |
unserialize()
Helper method which actually does the serialization. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Unserializer(Context context,
byte[] data)
throws UnserializationException
protected Unserializer(Context context,
byte[] data,
int begin,
int end)
throws UnserializationException
| Method Detail |
public Context getContext()
throws UnserializationException
UnserializationExceptionpublic void register(java.lang.Object o)
public void close()
public int peek()
public void back()
public java.lang.String getView()
public int get()
throws UnserializationException
UnserializationException
public void consume(int ch)
throws UnserializationException
UnserializationException
public java.lang.Object consumeRegisteredIf()
throws UnserializationException
UnserializationException
public boolean consumeIf(int ch)
throws UnserializationException
UnserializationException
public final Any unserialize()
throws UnserializationException
UnserializationException - If data has been corrupted
public final java.lang.String getUTF16String()
throws UnserializationException
UnserializationException - If data has been corrupted
public final java.lang.String getBinaryString()
throws UnserializationException
UnserializationException
public final long getLong()
throws UnserializationException
UnserializationException - If data has been corrupted
public final double getDouble()
throws UnserializationException
UnserializationException - If data has been corrupted
public final float getFloat()
throws UnserializationException
UnserializationException - If data has been corrupted
public char getCharUTF16()
throws UnserializationException
UnserializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||