public abstract class TLContext extends Object
| Constructor and Description |
|---|
TLContext() |
| Modifier and Type | Method and Description |
|---|---|
TLBytes |
allocateBytes(int size) |
protected TLObject |
convertCompatClass(TLObject src) |
TLIntVector |
deserializeIntVector(InputStream stream) |
TLLongVector |
deserializeLongVector(InputStream stream) |
TLObject |
deserializeMessage(byte[] data) |
TLObject |
deserializeMessage(InputStream stream) |
TLObject |
deserializeMessage(int clazzId,
InputStream stream) |
TLStringVector |
deserializeStringVector(InputStream stream) |
TLVector |
deserializeVector(InputStream stream) |
Set<Integer> |
getRegisteredClassIds() |
protected void |
init() |
boolean |
isSupportedObject(int classId) |
boolean |
isSupportedObject(TLObject object) |
<T extends TLObject> |
registerClass(Class<T> tClass) |
<T extends TLObject> |
registerClass(int clazzId,
Class<T> tClass) |
<T extends TLObject> |
registerCompatClass(Class<T> tClass) |
<T extends TLObject> |
registerCompatClass(int clazzId,
Class<T> tClass) |
void |
releaseBytes(TLBytes unused) |
protected void init()
public boolean isSupportedObject(TLObject object)
public boolean isSupportedObject(int classId)
public <T extends TLObject> void registerCompatClass(int clazzId, Class<T> tClass)
public TLObject deserializeMessage(byte[] data) throws IOException
IOExceptionpublic TLObject deserializeMessage(int clazzId, InputStream stream) throws IOException
IOExceptionpublic TLObject deserializeMessage(InputStream stream) throws IOException
IOExceptionpublic TLVector deserializeVector(InputStream stream) throws IOException
IOExceptionpublic TLIntVector deserializeIntVector(InputStream stream) throws IOException
IOExceptionpublic TLLongVector deserializeLongVector(InputStream stream) throws IOException
IOExceptionpublic TLStringVector deserializeStringVector(InputStream stream) throws IOException
IOExceptionpublic TLBytes allocateBytes(int size)
public void releaseBytes(TLBytes unused)
Copyright © 2016. All rights reserved.