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
in
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
beginComponent
(ManageableType.ArrayComponent c, int index) void
beginExtent
(PersistenceManager manager) beginField
(ManageableType type, ManageableType.Field field) final void
check
(int expected) final void
checkInt
(int expected) void
endArray()
void
void
void
endField()
void
getCache
(short cacheId) int
final boolean
boolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) int
readInt()
readLine()
long
readLong()
readName()
readObject
(int kind, Type type) long
short
int
int
readUTF()
final void
reset()
resolveId
(long inputId) void
setNested
(boolean nested) int
skipBytes
(int n) Methods inherited from class java.io.FilterInputStream
available, close, mark, read, read, read, skip
Methods 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:
getBindings
in interfacePersistenceInput
-
endExtent
- Throws:
IOException
-
checkInt
- Throws:
IOException
-
check
- Throws:
IOException
-
markSupported
public final boolean markSupported()- Overrides:
markSupported
in classFilterInputStream
-
reset
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Specified by:
readBoolean
in interfacePersistenceInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Specified by:
readByte
in interfacePersistenceInput
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Specified by:
readUnsignedByte
in interfacePersistenceInput
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Specified by:
readShort
in interfacePersistenceInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Specified by:
readUnsignedShort
in interfacePersistenceInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Specified by:
readChar
in interfacePersistenceInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Specified by:
readInt
in interfacePersistenceInput
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Specified by:
readLong
in interfacePersistenceInput
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Specified by:
readFloat
in interfacePersistenceInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Specified by:
readDouble
in interfacePersistenceInput
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
readName
- Specified by:
readName
in interfacePersistenceInput
- Throws:
IOException
-
readString
- Specified by:
readString
in interfacePersistenceInput
- Throws:
IOException
-
getNextObjectKind
- Specified by:
getNextObjectKind
in interfacePersistenceInput
- Throws:
IOException
-
readObject
- Specified by:
readObject
in interfacePersistenceInput
- Throws:
IOException
-
readPersistentObject
- Specified by:
readPersistentObject
in interfacePersistenceInput
- Throws:
IOException
-
readPersistentObjectId
- Specified by:
readPersistentObjectId
in interfacePersistenceInput
- Throws:
IOException
-
beginArray
- Specified by:
beginArray
in interfacePersistenceInput
- Throws:
IOException
-
beginComponent
- Specified by:
beginComponent
in interfacePersistenceInput
-
endComponent
public void endComponent()- Specified by:
endComponent
in interfacePersistenceInput
-
endArray
public void endArray()- Specified by:
endArray
in interfacePersistenceInput
-
beginManaged
- Specified by:
beginManaged
in interfacePersistenceInput
- Throws:
IOException
-
areFieldsProvided
public boolean areFieldsProvided()- Specified by:
areFieldsProvided
in interfacePersistenceInput
-
beginField
public ManageableType.Field beginField(ManageableType type, ManageableType.Field field) throws IOException - Specified by:
beginField
in interfacePersistenceInput
- Throws:
IOException
-
endField
public void endField()- Specified by:
endField
in interfacePersistenceInput
-
endManaged
public void endManaged()- Specified by:
endManaged
in interfacePersistenceInput
-
setNested
public void setNested(boolean nested) - Specified by:
setNested
in interfacePersistenceInput
-
resolveId
- Specified by:
resolveId
in interfacePersistenceInput
-