java.lang.Object
java.io.InputStream
de.grogra.util.HierarchicalQueue.Reader
de.grogra.persistence.XAQueue.Reader
- All Implemented Interfaces:
PersistenceInput
,Closeable
,DataInput
,ObjectInput
,AutoCloseable
- Direct Known Subclasses:
ModificationQueue.Applier
,Transaction.Reader
- Enclosing class:
- XAQueue
-
Field Summary
Fields inherited from class de.grogra.util.HierarchicalQueue.Reader
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) beginField
(ManageableType type, ManageableType.Field field) void
close()
void
endArray()
void
void
endField()
void
final PersistenceBindings
int
getQueue()
void
open()
readName()
readObject
(int kind, Type type) final PersistenceCapable
final long
final Shareable
resolveId
(long inputId) void
setNested
(boolean nested) Methods inherited from class de.grogra.util.HierarchicalQueue.Reader
available, enter, isAt, leave, moveTo, moveToCurrent, next, peekByte, peekDouble, peekFloat, peekInt, peekLong, peekObject, popCursor, previous, pushCursor, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readItem, readLine, readLong, readObject, readObjectInQueue, readObjectInStream, readShort, readSkipBlock, readUnsignedByte, readUnsignedShort, readUTF, resetCursor, skip, skipBlock, skipBoolean, skipByte, skipBytes, skipChar, skipDouble, skipFloat, skipInt, skipLong, skipObjectInQueue, skipShort, skipUTF
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.persistence.PersistenceInput
readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort
-
Constructor Details
-
Reader
protected Reader()
-
-
Method Details
-
getBindings
- Specified by:
getBindings
in interfacePersistenceInput
-
open
public void open() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceObjectInput
- Overrides:
close
in classHierarchicalQueue.Reader
-
getQueue
-
readName
- Specified by:
readName
in interfacePersistenceInput
- Throws:
UTFDataFormatException
-
readString
- Specified by:
readString
in interfacePersistenceInput
- Throws:
UTFDataFormatException
-
getNextObjectKind
public int getNextObjectKind()- Specified by:
getNextObjectKind
in interfacePersistenceInput
-
readObject
- Specified by:
readObject
in interfacePersistenceInput
- Throws:
IOException
-
readPersistentObjectId
- Specified by:
readPersistentObjectId
in interfacePersistenceInput
- Throws:
IOException
-
readPersistentObject
- Specified by:
readPersistentObject
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
- Specified by:
beginField
in interfacePersistenceInput
-
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
-