java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.grogra.persistence.PersistenceInputStream
- All Implemented Interfaces:
PersistenceInput,Closeable,DataInput,AutoCloseable
public class PersistenceInputStream
extends FilterInputStream
implements PersistenceInput, DataInput
-
Field Summary
Fields inherited from class java.io.FilterInputStream
inFields inherited from interface de.grogra.persistence.PersistenceInput
ARRAY_OBJECT, MANAGEABLE_OBJECT, MIN_UNUSED_KIND, NULL_OBJECT, PERSISTENT_OBJECT_ID, PLAIN_OBJECT, SERIALIZED_OBJECT, SHARED_OBJECT_REFERENCE, STRING_OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanbeginComponent(ManageableType.ArrayComponent c, int index) voidbeginExtent(PersistenceManager manager) beginField(ManageableType type, ManageableType.Field field) final voidcheck(int expected) final voidcheckInt(int expected) voidendArray()voidvoidvoidendField()voidgetCache(short cacheId) intfinal booleancharpeek()booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()readLine()longreadLong()readName()readObject(int kind, Type type) longshortintintreadUTF()final voidreset()resolveId(long inputId) voidsetNested(boolean nested) intskipBytes(int n) Methods inherited from class java.io.FilterInputStream
available, close, mark, read, read, read, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
PersistenceInputStream
- Throws:
IOException
-
-
Method Details
-
getCache
- Throws:
IOException
-
readCache
- Throws:
IOException
-
beginExtent
- Throws:
IOException
-
getBindings
- Specified by:
getBindingsin interfacePersistenceInput
-
endExtent
- Throws:
IOException
-
checkInt
- Throws:
IOException
-
check
- Throws:
IOException
-
markSupported
public final boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Specified by:
readBooleanin interfacePersistenceInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Specified by:
readBytein interfacePersistenceInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Specified by:
readUnsignedBytein interfacePersistenceInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Specified by:
readShortin interfacePersistenceInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Specified by:
readUnsignedShortin interfacePersistenceInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Specified by:
readCharin interfacePersistenceInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Specified by:
readIntin interfacePersistenceInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Specified by:
readLongin interfacePersistenceInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Specified by:
readFloatin interfacePersistenceInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Specified by:
readDoublein interfacePersistenceInput- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
readName
- Specified by:
readNamein interfacePersistenceInput- Throws:
IOException
-
readString
- Specified by:
readStringin interfacePersistenceInput- Throws:
IOException
-
getNextObjectKind
- Specified by:
getNextObjectKindin interfacePersistenceInput- Throws:
IOException
-
readObject
- Specified by:
readObjectin interfacePersistenceInput- Throws:
IOException
-
readPersistentObject
- Specified by:
readPersistentObjectin interfacePersistenceInput- Throws:
IOException
-
readPersistentObjectId
- Specified by:
readPersistentObjectIdin interfacePersistenceInput- Throws:
IOException
-
beginArray
- Specified by:
beginArrayin interfacePersistenceInput- Throws:
IOException
-
beginComponent
- Specified by:
beginComponentin interfacePersistenceInput
-
endComponent
public void endComponent()- Specified by:
endComponentin interfacePersistenceInput
-
endArray
public void endArray()- Specified by:
endArrayin interfacePersistenceInput
-
beginManaged
- Specified by:
beginManagedin interfacePersistenceInput- Throws:
IOException
-
areFieldsProvided
public boolean areFieldsProvided()- Specified by:
areFieldsProvidedin interfacePersistenceInput
-
beginField
public ManageableType.Field beginField(ManageableType type, ManageableType.Field field) throws IOException - Specified by:
beginFieldin interfacePersistenceInput- Throws:
IOException
-
endField
public void endField()- Specified by:
endFieldin interfacePersistenceInput
-
endManaged
public void endManaged()- Specified by:
endManagedin interfacePersistenceInput
-
setNested
public void setNested(boolean nested) - Specified by:
setNestedin interfacePersistenceInput
-
resolveId
- Specified by:
resolveIdin interfacePersistenceInput
-
peek
- Specified by:
peekin interfacePersistenceInput- Throws:
IOException
-