public class FSTObjectInput extends DataInputStream implements ObjectInput
| Modifier and Type | Class and Description |
|---|---|
static interface |
FSTObjectInput.ConditionalCallback |
| Modifier and Type | Field and Description |
|---|---|
FSTClazzNameRegistry |
clnames |
in| Constructor and Description |
|---|
FSTObjectInput() |
FSTObjectInput(FSTConfiguration conf) |
FSTObjectInput(InputStream in)
Creates a FSTObjectInput that uses the specified
underlying InputStream.
|
FSTObjectInput(InputStream in,
FSTConfiguration conf)
Creates a FSTObjectInput that uses the specified
underlying InputStream.
|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesavailable, mark, markSupported, read, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytespublic FSTClazzNameRegistry clnames
public FSTObjectInput()
throws IOException
IOExceptionpublic FSTObjectInput(FSTConfiguration conf) throws IOException
IOExceptionpublic FSTObjectInput(InputStream in) throws IOException
in - the specified input streamIOExceptionpublic FSTObjectInput(InputStream in, FSTConfiguration conf) throws IOException
in - the specified input streamIOExceptionpublic FSTConfiguration getConf()
public Class getClassForName(String name) throws ClassNotFoundException
ClassNotFoundExceptionpublic FSTObjectInput.ConditionalCallback getConditionalCallback()
public void setConditionalCallback(FSTObjectInput.ConditionalCallback conditionalCallback)
public int getReadExternalReadAHead()
public void setReadExternalReadAHead(int readExternalReadAHead)
readExternalReadAHead - public Object readObject() throws ClassNotFoundException, IOException
readObject in interface ObjectInputClassNotFoundExceptionIOExceptionpublic Object readObjectInternal(Class... expected) throws ClassNotFoundException, IOException, IllegalAccessException, InstantiationException
public Object readObjectWithHeader(FSTClazzInfo.FSTFieldInfo referencee) throws ClassNotFoundException, IOException, InstantiationException, IllegalAccessException
protected Object copy(Object res, int streamPosition) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
protected Object defaultCopy(Object toCopy, int streamPosition) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected Object readObjectCompatible(FSTClazzInfo.FSTFieldInfo referencee, FSTClazzInfo serializationInfo, Object newObj) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException
protected void readObjectCompatibleRecursive(FSTClazzInfo.FSTFieldInfo referencee, Object toRead, FSTClazzInfo serializationInfo, Class cl) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
public void defaultReadObject(FSTClazzInfo.FSTFieldInfo referencee, FSTClazzInfo serializationInfo, Object newObj) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException
protected void readCompatibleObjectFields(FSTClazzInfo.FSTFieldInfo referencee, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo[] fieldInfo, Map res) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException
public String readStringCompressed() throws IOException
IOExceptionpublic String readStringUTF() throws IOException
IOExceptionpublic String readStringUTFSpeed() throws IOException
IOExceptionpublic Object readFPrimitiveArray(Class componentType, int len)
componentType - protected Object readArray(FSTClazzInfo.FSTFieldInfo referencee) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException
public void readLongArrUnsafe(long[] arr)
public void readPlainIntArrUnsafe(int[] arr)
public void readCompressedArray(int len,
int[] arr)
throws IOException
IOExceptionpublic void registerObject(Object o, int streamPosition, FSTClazzInfo info, FSTClazzInfo.FSTFieldInfo referencee)
public FSTClazzInfo readClass() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic int _readCInt()
throws IOException
IOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic void resetForReuse(InputStream in) throws IOException
IOExceptionpublic void resetForReuseCopyArray(byte[] bytes,
int off,
int len)
throws IOException
IOExceptionpublic void resetForReuseUseArray(byte[] bytes,
int off,
int len)
throws IOException
IOExceptionpublic final int readFIntUnsafe()
throws IOException
IOExceptionpublic final int readFInt()
throws IOException
IOExceptionpublic void readFIntArr(int len,
int[] arr)
throws IOException
IOExceptionpublic final int readCInt()
throws IOException
IOExceptionpublic double readFDouble()
throws IOException
IOExceptionpublic double readFDoubleUnsafe()
throws IOException
IOExceptionpublic final byte readFByte()
throws IOException
IOExceptionpublic long readFLongUnsafe()
throws IOException
IOExceptionpublic long readFLong()
throws IOException
IOExceptionpublic long readCLong()
throws IOException
IOExceptionpublic char readFChar()
throws IOException
IOExceptionpublic char readCChar()
throws IOException
IOExceptionpublic float readCFloat()
throws IOException
IOExceptionpublic float readFFloat()
throws IOException
IOExceptionpublic double readCDouble()
throws IOException
IOExceptionpublic short readFShort()
throws IOException
IOExceptionpublic short readCShort()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface ObjectInputclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic FSTInputStream getInput()
Copyright © 2014. All rights reserved.