java.lang.Object
java.io.OutputStream
de.grogra.persistence.PersistenceOutputStream
- All Implemented Interfaces:
PersistenceOutput,Closeable,DataOutput,Flushable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginArray(int length, Type ct) voidbeginExtent(PersistenceManager manager) voidbeginField(ManageableType.Field field) voidbooleanbeginManaged(ManageableType type, boolean writeType) voidclose()voidendArray()voidvoidendField(ManageableType.Field field) voidvoidendManaged(Object object, boolean writeType) voidflush()voidsetNested(boolean nested) voidwrite(byte[] v) voidwrite(byte[] v, int offset, int length) voidwrite(int v) voidwrite(BindingsCache cache) voidwriteBoolean(boolean v) voidwriteByte(int v) voidwriteBytes(String v) voidwriteChar(int v) voidwriteChars(String v) voidwriteDouble(double v) voidwriteFloat(float v) voidwriteInt(int v) voidLibraryObjectReference do not write the sharablevoidwriteLong(long v) voidvoidvoidwriteObject(Object v, Type type) voidvoidvoidwriteShort(int v) booleanReturn true if static (global) fields should be writtenvoidvoidwriteStringObject(String value) voidMethods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
MAGIC
public static final int MAGIC- See Also:
-
-
Constructor Details
-
PersistenceOutputStream
- Throws:
IOException
-
-
Method Details
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
- Throws:
IOException
-
beginExtent
- Throws:
IOException
-
endExtent
- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Specified by:
writein classOutputStream- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChars
- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException
-
writeUTF
- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-
writeName
- Specified by:
writeNamein interfacePersistenceOutput- Throws:
IOException
-
writeString
- Specified by:
writeStringin interfacePersistenceOutput- Throws:
IOException
-
writeBoolean
- Specified by:
writeBooleanin interfaceDataOutput- Specified by:
writeBooleanin interfacePersistenceOutput- Throws:
IOException
-
writeByte
- Specified by:
writeBytein interfaceDataOutput- Specified by:
writeBytein interfacePersistenceOutput- Throws:
IOException
-
writeChar
- Specified by:
writeCharin interfaceDataOutput- Specified by:
writeCharin interfacePersistenceOutput- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceDataOutput- Specified by:
writeShortin interfacePersistenceOutput- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceDataOutput- Specified by:
writeIntin interfacePersistenceOutput- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceDataOutput- Specified by:
writeLongin interfacePersistenceOutput- Throws:
IOException
-
writeFloat
- Specified by:
writeFloatin interfaceDataOutput- Specified by:
writeFloatin interfacePersistenceOutput- Throws:
IOException
-
writeDouble
- Specified by:
writeDoublein interfaceDataOutput- Specified by:
writeDoublein interfacePersistenceOutput- Throws:
IOException
-
writeNullObject
- Specified by:
writeNullObjectin interfacePersistenceOutput- Throws:
IOException
-
writeStringObject
- Specified by:
writeStringObjectin interfacePersistenceOutput- Throws:
IOException
-
writeObject
- Specified by:
writeObjectin interfacePersistenceOutput- Throws:
IOException
-
writePersistentObjectReference
- Specified by:
writePersistentObjectReferencein interfacePersistenceOutput- Throws:
IOException
-
writeLibraryObjectReference
LibraryObjectReference do not write the sharable- Specified by:
writeLibraryObjectReferencein interfacePersistenceOutput- Throws:
IOException
-
beginArray
- Specified by:
beginArrayin interfacePersistenceOutput- Throws:
IOException
-
endArray
public void endArray()- Specified by:
endArrayin interfacePersistenceOutput
-
beginManaged
- Specified by:
beginManagedin interfacePersistenceOutput- Throws:
IOException
-
beginFields
public void beginFields()- Specified by:
beginFieldsin interfacePersistenceOutput
-
beginField
- Specified by:
beginFieldin interfacePersistenceOutput- Throws:
IOException
-
endField
- Specified by:
endFieldin interfacePersistenceOutput
-
endFields
- Specified by:
endFieldsin interfacePersistenceOutput- Throws:
IOException
-
endManaged
- Specified by:
endManagedin interfacePersistenceOutput
-
setNested
public void setNested(boolean nested) - Specified by:
setNestedin interfacePersistenceOutput
-
writeStatic
public boolean writeStatic()Description copied from interface:PersistenceOutputReturn true if static (global) fields should be written- Specified by:
writeStaticin interfacePersistenceOutput
-