|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.google.gwt.user.client.rpc.SerializationStream
com.google.gwt.user.server.rpc.ServerSerializationStream
For internal use only. Used for server call serialization. This class is carefully matched with the client-side version.
| Field Summary |
| Fields inherited from class com.google.gwt.user.client.rpc.SerializationStream |
flags, NEW_INSTANCE_MARKER, NULL_INSTANCE_MARKER, PREV_INSTANCE_MARKER, SERIALIZATION_STREAM_FLAGS_NO_TYPE_VERSIONING, SERIALIZATION_STREAM_VERSION, version |
| Fields inherited from class java.lang.Object |
typeId, typeName |
| Constructor Summary | |
ServerSerializationStream(com.google.gwt.user.server.rpc.ServerSerializableTypeOracle serializableTypeOracle)
|
|
| Method Summary | |
int |
addString(String string)
Add a string to this string table. |
void |
append(String token)
|
Object |
deserializeValue(Class type)
|
void |
endInstance(SerializationStreamWriter streamWriter,
Object instance)
Mark the end of instance in the stream. |
String |
extract()
|
protected String |
getInstanceName(String token)
|
SerializationStreamObjectDecoder |
getObjectDecoder()
|
SerializationStreamObjectEncoder |
getObjectEncoder()
|
String |
getString(int index)
Get the string that is associated with the requested index. |
int |
getStringCount()
Get the number of strings in the table. |
StringTable |
getStringTable()
Get the string table associated with this decoder. |
protected String |
getTypeName(String token)
|
Object |
lookupDecodedObject(String id)
|
String |
nextInstance(SerializationStreamReader stream)
Get's the binary name of the next instance in the serialization stream. |
void |
prepareToRead(String encodedTokens)
|
void |
prepareToWrite()
|
Object |
prevInstance(SerializationStreamReader stream)
See if the next method in the stream is a previously seen method. |
Object |
readObject()
|
void |
rememberDecodedObject(Object o)
Save this instance in case it is ferenced later on in the stream. |
void |
serializeValue(Object value,
Class type)
|
boolean |
startInstance(SerializationStreamWriter streamWriter,
Object instance)
Mark the start of an instance. |
String |
toString()
Build an array of JavaScript string literals that can be decoded by the client via the eval function. |
void |
writeObject(Object value)
|
| Methods inherited from class com.google.gwt.user.client.rpc.SerializationStream |
addFlags, getFlags, getVersion, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, setFlags, setVersion, shouldEnforceTypeVersioning, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShort |
| Methods inherited from class java.lang.Object |
equals, finalize, hashCode |
| Constructor Detail |
public ServerSerializationStream(com.google.gwt.user.server.rpc.ServerSerializableTypeOracle serializableTypeOracle)
| Method Detail |
protected String getTypeName(String token)
public int addString(String string)
StringTable
string -
public void prepareToRead(String encodedTokens)
prepareToRead in class SerializationStreampublic String extract()
extract in class SerializationStreampublic void prepareToWrite()
prepareToWrite in class SerializationStreampublic void append(String token)
append in class SerializationStreampublic String toString()
public boolean startInstance(SerializationStreamWriter streamWriter,
Object instance)
throws SerializationException
SerializationStreamObjectEncoder
SerializationException
public void endInstance(SerializationStreamWriter streamWriter,
Object instance)
SerializationStreamObjectEncoder
public String nextInstance(SerializationStreamReader stream)
SerializationStreamObjectDecoder
public Object prevInstance(SerializationStreamReader stream)
SerializationStreamObjectDecoder
public void rememberDecodedObject(Object o)
SerializationStreamObjectDecoder
o - - object that we want to be able to recall via prevInstance.public Object lookupDecodedObject(String id)
public SerializationStreamObjectDecoder getObjectDecoder()
getObjectDecoder in interface SerializationStreamReadergetObjectDecoder in class SerializationStreampublic SerializationStreamObjectEncoder getObjectEncoder()
getObjectEncoder in interface SerializationStreamWritergetObjectEncoder in class SerializationStreampublic String getString(int index)
StringTable
index -
public Object deserializeValue(Class type)
throws SerializationException
SerializationException
public void serializeValue(Object value,
Class type)
throws SerializationException
SerializationExceptionprotected String getInstanceName(String token)
public Object readObject()
throws SerializationException
SerializationException
public void writeObject(Object value)
throws SerializationException
SerializationExceptionpublic StringTable getStringTable()
SerializationStreamObjectDecoder
public int getStringCount()
StringTable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||