java.lang.Object
java.io.OutputStream
de.grogra.persistence.PersistenceOutputStream
- All Implemented Interfaces:
PersistenceOutput
,Closeable
,DataOutput
,Flushable
,AutoCloseable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginArray
(int length, Type ct) void
beginExtent
(PersistenceManager manager) void
beginField
(ManageableType.Field field) void
boolean
beginManaged
(ManageableType type, boolean writeType) void
close()
void
endArray()
void
void
endField
(ManageableType.Field field) void
void
endManaged
(Object object, boolean writeType) void
flush()
void
setNested
(boolean nested) void
write
(byte[] v) void
write
(byte[] v, int offset, int length) void
write
(int v) void
write
(BindingsCache cache) void
writeBoolean
(boolean v) void
writeByte
(int v) void
writeBytes
(String v) void
writeChar
(int v) void
writeChars
(String v) void
writeDouble
(double v) void
writeFloat
(float v) void
writeInt
(int v) void
writeLong
(long v) void
void
void
writeObject
(Object v, Type type) void
void
void
writeShort
(int v) void
void
writeStringObject
(String value) void
Methods 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:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
- Throws:
IOException
-
beginExtent
- Throws:
IOException
-
endExtent
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in interfaceDataOutput
- Throws:
IOException
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
- Throws:
IOException
-
writeUTF
- Specified by:
writeUTF
in interfaceDataOutput
- Throws:
IOException
-
writeName
- Specified by:
writeName
in interfacePersistenceOutput
- Throws:
IOException
-
writeString
- Specified by:
writeString
in interfacePersistenceOutput
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceDataOutput
- Specified by:
writeBoolean
in interfacePersistenceOutput
- Throws:
IOException
-
writeByte
- Specified by:
writeByte
in interfaceDataOutput
- Specified by:
writeByte
in interfacePersistenceOutput
- Throws:
IOException
-
writeChar
- Specified by:
writeChar
in interfaceDataOutput
- Specified by:
writeChar
in interfacePersistenceOutput
- Throws:
IOException
-
writeShort
- Specified by:
writeShort
in interfaceDataOutput
- Specified by:
writeShort
in interfacePersistenceOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceDataOutput
- Specified by:
writeInt
in interfacePersistenceOutput
- Throws:
IOException
-
writeLong
- Specified by:
writeLong
in interfaceDataOutput
- Specified by:
writeLong
in interfacePersistenceOutput
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceDataOutput
- Specified by:
writeFloat
in interfacePersistenceOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceDataOutput
- Specified by:
writeDouble
in interfacePersistenceOutput
- Throws:
IOException
-
writeNullObject
- Specified by:
writeNullObject
in interfacePersistenceOutput
- Throws:
IOException
-
writeStringObject
- Specified by:
writeStringObject
in interfacePersistenceOutput
- Throws:
IOException
-
writeObject
- Specified by:
writeObject
in interfacePersistenceOutput
- Throws:
IOException
-
writePersistentObjectReference
- Specified by:
writePersistentObjectReference
in interfacePersistenceOutput
- Throws:
IOException
-
beginArray
- Specified by:
beginArray
in interfacePersistenceOutput
- Throws:
IOException
-
endArray
public void endArray()- Specified by:
endArray
in interfacePersistenceOutput
-
beginManaged
- Specified by:
beginManaged
in interfacePersistenceOutput
- Throws:
IOException
-
beginFields
public void beginFields()- Specified by:
beginFields
in interfacePersistenceOutput
-
beginField
- Specified by:
beginField
in interfacePersistenceOutput
- Throws:
IOException
-
endField
- Specified by:
endField
in interfacePersistenceOutput
-
endFields
- Specified by:
endFields
in interfacePersistenceOutput
- Throws:
IOException
-
endManaged
- Specified by:
endManaged
in interfacePersistenceOutput
-
setNested
public void setNested(boolean nested) - Specified by:
setNested
in interfacePersistenceOutput
-