public abstract class TLObject extends Object implements Serializable
| Constructor and Description |
|---|
TLObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(InputStream stream,
TLContext context)
Deserializing object from stream and current TLContext
|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
abstract int |
getClassId()
Getting TL Class identification
|
byte[] |
serialize()
Serializing object to byte array
|
void |
serialize(OutputStream stream)
Serializing object to stream
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
abstract String |
toString()
Custom toString method
|
public abstract int getClassId()
public abstract String toString()
public byte[] serialize()
throws IOException
IOExceptionpublic void serialize(OutputStream stream) throws IOException
stream - destination streamIOExceptionpublic void deserialize(InputStream stream, TLContext context) throws IOException
stream - source streamcontext - tl contextIOExceptionpublic void serializeBody(OutputStream stream) throws IOException
stream - destination streamIOExceptionpublic void deserializeBody(InputStream stream, TLContext context) throws IOException
stream - source streamcontext - tl contextIOExceptionCopyright © 2016. All rights reserved.