|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.marshalling.AbstractMarshaller
org.jboss.marshalling.serialization.java.JavaSerializationMarshaller
public class JavaSerializationMarshaller
Copyright Sep 19, 2008
Field Summary |
---|
Fields inherited from class org.jboss.marshalling.AbstractMarshaller |
---|
bufferSize, byteOutput, classExternalizerFactory, classResolver, classTable, configuredVersion, creator, externalizerFactory, objectResolver, objectTable, streamHeader |
Constructor Summary | |
---|---|
protected |
JavaSerializationMarshaller(AbstractMarshallerFactory marshallerFactory,
MarshallingConfiguration configuration)
|
Method Summary | |
---|---|
void |
clearClassCache()
Discard the class cache. |
void |
clearInstanceCache()
Discard the instance cache. |
protected void |
doStart()
Perform any marshaller-specific start activity. |
protected void |
doWriteObject(java.lang.Object obj,
boolean unshared)
Implementation of the actual object-writing method. |
void |
finish()
Finish marshalling to a stream. |
void |
flush()
|
ByteOutputStream |
getOutputStream()
|
void |
start(ByteOutput byteOutput)
Begin marshalling to a stream. |
void |
write(byte[] b)
Write all the bytes from the given array to the stream. |
void |
write(byte[] b,
int off,
int len)
Write some of the bytes from the given array to the stream. |
void |
write(int b)
Writes to the output stream the eight low-order bits of the argument b . |
void |
writeBoolean(boolean v)
|
void |
writeByte(int v)
|
void |
writeBytes(java.lang.String s)
|
void |
writeChar(int v)
|
void |
writeChars(java.lang.String s)
|
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
void |
writeShort(int v)
|
void |
writeUTF(java.lang.String s)
|
Methods inherited from class org.jboss.marshalling.AbstractMarshaller |
---|
close, writeObject, writeObjectUnshared |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JavaSerializationMarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void clearClassCache() throws java.io.IOException
Marshaller
java.io.IOException
- if an error occurspublic void clearInstanceCache() throws java.io.IOException
Marshaller
java.io.IOException
- if an error occurspublic ByteOutputStream getOutputStream()
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in interface java.io.ObjectOutput
flush
in class AbstractMarshaller
java.io.IOException
public void finish() throws java.io.IOException
Marshaller.start(ByteOutput)
method is again invoked.
finish
in interface Marshaller
finish
in class AbstractMarshaller
java.io.IOException
- if an error occurspublic void start(ByteOutput byteOutput) throws java.io.IOException
AbstractMarshaller
start
in interface Marshaller
start
in class AbstractMarshaller
byteOutput
- the new stream
java.io.IOException
- if an error occurs during setup, such as an error writing the headerprotected void doWriteObject(java.lang.Object obj, boolean unshared) throws java.io.IOException
AbstractMarshaller
doWriteObject
in class AbstractMarshaller
obj
- the object to writeunshared
- true
if the instance is unshared, false
if it is shared
java.io.IOException
- if an I/O error occurspublic void write(int b) throws java.io.IOException
b
. The 24 high-order bits of
b
are ignored.
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
write
in interface ByteOutput
write
in class AbstractMarshaller
b
- the byte to write
java.io.IOException
- if an error occurspublic void write(byte[] b) throws java.io.IOException
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
write
in interface ByteOutput
write
in class AbstractMarshaller
b
- the byte array
java.io.IOException
- if an error occurspublic void write(byte[] b, int off, int len) throws java.io.IOException
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
write
in interface ByteOutput
write
in class AbstractMarshaller
b
- the byte arrayoff
- the index to start writing fromlen
- the number of bytes to write
java.io.IOException
- if an error occurspublic void writeBoolean(boolean v) throws java.io.IOException
writeBoolean
in interface java.io.DataOutput
writeBoolean
in class AbstractMarshaller
java.io.IOException
public void writeByte(int v) throws java.io.IOException
writeByte
in interface java.io.DataOutput
writeByte
in class AbstractMarshaller
java.io.IOException
public void writeShort(int v) throws java.io.IOException
writeShort
in interface java.io.DataOutput
writeShort
in class AbstractMarshaller
java.io.IOException
public void writeChar(int v) throws java.io.IOException
writeChar
in interface java.io.DataOutput
writeChar
in class AbstractMarshaller
java.io.IOException
public void writeInt(int v) throws java.io.IOException
writeInt
in interface java.io.DataOutput
writeInt
in class AbstractMarshaller
java.io.IOException
public void writeLong(long v) throws java.io.IOException
writeLong
in interface java.io.DataOutput
writeLong
in class AbstractMarshaller
java.io.IOException
public void writeFloat(float v) throws java.io.IOException
writeFloat
in interface java.io.DataOutput
writeFloat
in class AbstractMarshaller
java.io.IOException
public void writeDouble(double v) throws java.io.IOException
writeDouble
in interface java.io.DataOutput
writeDouble
in class AbstractMarshaller
java.io.IOException
public void writeBytes(java.lang.String s) throws java.io.IOException
writeBytes
in interface java.io.DataOutput
writeBytes
in class AbstractMarshaller
java.io.IOException
public void writeChars(java.lang.String s) throws java.io.IOException
writeChars
in interface java.io.DataOutput
writeChars
in class AbstractMarshaller
java.io.IOException
public void writeUTF(java.lang.String s) throws java.io.IOException
writeUTF
in interface java.io.DataOutput
writeUTF
in class AbstractMarshaller
java.io.IOException
protected void doStart() throws java.io.IOException
AbstractMarshaller
doStart
in class AbstractMarshaller
java.io.IOException
- if I/O exception occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |