de.grogra.persistence
public class PersistenceOutputStream extends java.io.OutputStream implements PersistenceOutput, java.io.DataOutput
| Modifier and Type | Field and Description |
|---|---|
static int |
MAGIC |
| Constructor and Description |
|---|
PersistenceOutputStream(BindingsCache cache,
java.io.DataOutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginArray(int length,
Type ct) |
void |
beginExtent(PersistenceManager manager) |
void |
beginField(ManageableType.Field field) |
void |
beginFields() |
boolean |
beginManaged(ManageableType type,
boolean writeType) |
void |
close() |
void |
endArray() |
void |
endExtent() |
void |
endField(ManageableType.Field field) |
void |
endFields() |
void |
endManaged(java.lang.Object object,
boolean writeType) |
void |
flush() |
void |
setNested(boolean nested) |
void |
write(BindingsCache cache) |
void |
write(byte[] v) |
void |
write(byte[] v,
int offset,
int length) |
void |
write(int v) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(java.lang.String v) |
void |
writeChar(int v) |
void |
writeChars(java.lang.String v) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeName(java.lang.String v) |
void |
writeNullObject() |
void |
writeObject(java.lang.Object v,
Type type) |
void |
writePersistentObjectReference(PersistenceCapable o) |
void |
writeSharedObjectReference(Shareable o) |
void |
writeShort(int v) |
void |
writeString(java.lang.String v) |
void |
writeStringObject(java.lang.String value) |
void |
writeUTF(java.lang.String v) |
public static final int MAGIC
public PersistenceOutputStream(BindingsCache cache, java.io.DataOutputStream out) throws java.io.IOException
java.io.IOExceptionpublic void beginArray(int length,
Type ct)
throws java.io.IOException
beginArray in interface PersistenceOutputjava.io.IOExceptionpublic void beginExtent(PersistenceManager manager) throws java.io.IOException
java.io.IOExceptionpublic void beginField(ManageableType.Field field) throws java.io.IOException
beginField in interface PersistenceOutputjava.io.IOExceptionpublic void beginFields()
beginFields in interface PersistenceOutputpublic boolean beginManaged(ManageableType type, boolean writeType) throws java.io.IOException
beginManaged in interface PersistenceOutputjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void endArray()
endArray in interface PersistenceOutputpublic void endExtent()
throws java.io.IOException
java.io.IOExceptionpublic void endField(ManageableType.Field field)
endField in interface PersistenceOutputpublic void endFields()
throws java.io.IOException
endFields in interface PersistenceOutputjava.io.IOExceptionpublic void endManaged(java.lang.Object object,
boolean writeType)
endManaged in interface PersistenceOutputpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void setNested(boolean nested)
setNested in interface PersistenceOutputpublic void write(BindingsCache cache) throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] v)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] v,
int offset,
int length)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int v)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.OutputStreamjava.io.IOExceptionpublic void writeBoolean(boolean v)
throws java.io.IOException
writeBoolean in interface PersistenceOutputwriteBoolean in interface java.io.DataOutputjava.io.IOExceptionpublic void writeByte(int v)
throws java.io.IOException
writeByte in interface PersistenceOutputwriteByte in interface java.io.DataOutputjava.io.IOExceptionpublic void writeBytes(java.lang.String v)
throws java.io.IOException
writeBytes in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChar(int v)
throws java.io.IOException
writeChar in interface PersistenceOutputwriteChar in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChars(java.lang.String v)
throws java.io.IOException
writeChars in interface java.io.DataOutputjava.io.IOExceptionpublic void writeDouble(double v)
throws java.io.IOException
writeDouble in interface PersistenceOutputwriteDouble in interface java.io.DataOutputjava.io.IOExceptionpublic void writeFloat(float v)
throws java.io.IOException
writeFloat in interface PersistenceOutputwriteFloat in interface java.io.DataOutputjava.io.IOExceptionpublic void writeInt(int v)
throws java.io.IOException
writeInt in interface PersistenceOutputwriteInt in interface java.io.DataOutputjava.io.IOExceptionpublic void writeLong(long v)
throws java.io.IOException
writeLong in interface PersistenceOutputwriteLong in interface java.io.DataOutputjava.io.IOExceptionpublic void writeName(java.lang.String v)
throws java.io.IOException
writeName in interface PersistenceOutputjava.io.IOExceptionpublic void writeNullObject()
throws java.io.IOException
writeNullObject in interface PersistenceOutputjava.io.IOExceptionpublic void writeObject(java.lang.Object v,
Type type)
throws java.io.IOException
writeObject in interface PersistenceOutputjava.io.IOExceptionpublic void writePersistentObjectReference(PersistenceCapable o) throws java.io.IOException
writePersistentObjectReference in interface PersistenceOutputjava.io.IOExceptionpublic void writeSharedObjectReference(Shareable o) throws java.io.IOException
writeSharedObjectReference in interface PersistenceOutputjava.io.IOExceptionpublic void writeShort(int v)
throws java.io.IOException
writeShort in interface PersistenceOutputwriteShort in interface java.io.DataOutputjava.io.IOExceptionpublic void writeString(java.lang.String v)
throws java.io.IOException
writeString in interface PersistenceOutputjava.io.IOExceptionpublic void writeStringObject(java.lang.String value)
throws java.io.IOException
writeStringObject in interface PersistenceOutputjava.io.IOExceptionpublic void writeUTF(java.lang.String v)
throws java.io.IOException
writeUTF in interface java.io.DataOutputjava.io.IOException