de.grogra.persistence
public class PersistenceInputStream extends java.io.FilterInputStream implements PersistenceInput, java.io.DataInput
ARRAY_OBJECT, MANAGEABLE_OBJECT, MIN_UNUSED_KIND, NULL_OBJECT, PERSISTENT_OBJECT_ID, PLAIN_OBJECT, SERIALIZED_OBJECT, SHARED_OBJECT_REFERENCE, STRING_OBJECT| Constructor and Description |
|---|
PersistenceInputStream(PersistenceBindings bindings,
java.io.DataInputStream in) |
public PersistenceInputStream(PersistenceBindings bindings, java.io.DataInputStream in) throws java.io.IOException
java.io.IOExceptionpublic boolean areFieldsProvided()
areFieldsProvided in interface PersistenceInputpublic int beginArray()
throws java.io.IOException
beginArray in interface PersistenceInputjava.io.IOExceptionpublic boolean beginComponent(ManageableType.ArrayComponent c, int index)
beginComponent in interface PersistenceInputpublic void beginExtent(PersistenceManager manager) throws java.io.IOException
java.io.IOExceptionpublic ManageableType.Field beginField(ManageableType type, ManageableType.Field field) throws java.io.IOException
beginField in interface PersistenceInputjava.io.IOExceptionpublic ManageableType beginManaged() throws java.io.IOException
beginManaged in interface PersistenceInputjava.io.IOExceptionpublic final void check(int expected)
throws java.io.IOException
java.io.IOExceptionpublic final void checkInt(int expected)
throws java.io.IOException
java.io.IOExceptionpublic void endArray()
endArray in interface PersistenceInputpublic void endComponent()
endComponent in interface PersistenceInputpublic void endExtent()
throws java.io.IOException
java.io.IOExceptionpublic void endField()
endField in interface PersistenceInputpublic void endManaged()
endManaged in interface PersistenceInputpublic PersistenceBindings getBindings()
getBindings in interface PersistenceInputpublic BindingsCache getCache(short cacheId) throws java.io.IOException
java.io.IOExceptionpublic int getNextObjectKind()
throws java.io.IOException
getNextObjectKind in interface PersistenceInputjava.io.IOExceptionpublic final boolean markSupported()
markSupported in class java.io.FilterInputStreampublic boolean readBoolean()
throws java.io.IOException
readBoolean in interface PersistenceInputreadBoolean in interface java.io.DataInputjava.io.IOExceptionpublic byte readByte()
throws java.io.IOException
readByte in interface PersistenceInputreadByte in interface java.io.DataInputjava.io.IOExceptionpublic BindingsCache readCache() throws java.io.IOException
java.io.IOExceptionpublic char readChar()
throws java.io.IOException
readChar in interface PersistenceInputreadChar in interface java.io.DataInputjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
readDouble in interface PersistenceInputreadDouble in interface java.io.DataInputjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
readFloat in interface PersistenceInputreadFloat in interface java.io.DataInputjava.io.IOExceptionpublic void readFully(byte[] b)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in interface PersistenceInputreadInt in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in interface PersistenceInputreadLong in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readName()
throws java.io.IOException
readName in interface PersistenceInputjava.io.IOExceptionpublic java.lang.Object readObject(int kind,
Type type)
throws java.io.IOException
readObject in interface PersistenceInputjava.io.IOExceptionpublic PersistenceCapable readPersistentObject() throws java.io.IOException
readPersistentObject in interface PersistenceInputjava.io.IOExceptionpublic long readPersistentObjectId()
throws java.io.IOException
readPersistentObjectId in interface PersistenceInputjava.io.IOExceptionpublic Shareable readSharedObject() throws java.io.IOException
readSharedObject in interface PersistenceInputjava.io.IOExceptionpublic short readShort()
throws java.io.IOException
readShort in interface PersistenceInputreadShort in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readString()
throws java.io.IOException
readString in interface PersistenceInputjava.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface PersistenceInputreadUnsignedByte in interface java.io.DataInputjava.io.IOExceptionpublic int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface PersistenceInputreadUnsignedShort in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputjava.io.IOExceptionpublic final void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionpublic PersistenceCapable resolveId(long inputId)
resolveId in interface PersistenceInputpublic void setNested(boolean nested)
setNested in interface PersistenceInputpublic int skipBytes(int n)
throws java.io.IOException
skipBytes in interface java.io.DataInputjava.io.IOException