|
|||||||||
| 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 occurs
public 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.Flushableflush in interface java.io.ObjectOutputflush in class AbstractMarshallerjava.io.IOException
public void finish()
throws java.io.IOException
Marshaller.start(ByteOutput) method is again invoked.
finish in interface Marshallerfinish in class AbstractMarshallerjava.io.IOException - if an error occurs
public void start(ByteOutput byteOutput)
throws java.io.IOException
AbstractMarshaller
start in interface Marshallerstart in class AbstractMarshallerbyteOutput - the new stream
java.io.IOException - if an error occurs during setup, such as an error writing the header
protected void doWriteObject(java.lang.Object obj,
boolean unshared)
throws java.io.IOException
AbstractMarshaller
doWriteObject in class AbstractMarshallerobj - the object to writeunshared - true if the instance is unshared, false if it is shared
java.io.IOException - if an I/O error occurs
public void write(int b)
throws java.io.IOException
b. The 24 high-order bits of
b are ignored.
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in interface ByteOutputwrite in class AbstractMarshallerb - the byte to write
java.io.IOException - if an error occurs
public void write(byte[] b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in interface ByteOutputwrite in class AbstractMarshallerb - the byte array
java.io.IOException - if an error occurs
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in interface ByteOutputwrite in class AbstractMarshallerb - the byte arrayoff - the index to start writing fromlen - the number of bytes to write
java.io.IOException - if an error occurs
public void writeBoolean(boolean v)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputwriteBoolean in class AbstractMarshallerjava.io.IOException
public void writeByte(int v)
throws java.io.IOException
writeByte in interface java.io.DataOutputwriteByte in class AbstractMarshallerjava.io.IOException
public void writeShort(int v)
throws java.io.IOException
writeShort in interface java.io.DataOutputwriteShort in class AbstractMarshallerjava.io.IOException
public void writeChar(int v)
throws java.io.IOException
writeChar in interface java.io.DataOutputwriteChar in class AbstractMarshallerjava.io.IOException
public void writeInt(int v)
throws java.io.IOException
writeInt in interface java.io.DataOutputwriteInt in class AbstractMarshallerjava.io.IOException
public void writeLong(long v)
throws java.io.IOException
writeLong in interface java.io.DataOutputwriteLong in class AbstractMarshallerjava.io.IOException
public void writeFloat(float v)
throws java.io.IOException
writeFloat in interface java.io.DataOutputwriteFloat in class AbstractMarshallerjava.io.IOException
public void writeDouble(double v)
throws java.io.IOException
writeDouble in interface java.io.DataOutputwriteDouble in class AbstractMarshallerjava.io.IOException
public void writeBytes(java.lang.String s)
throws java.io.IOException
writeBytes in interface java.io.DataOutputwriteBytes in class AbstractMarshallerjava.io.IOException
public void writeChars(java.lang.String s)
throws java.io.IOException
writeChars in interface java.io.DataOutputwriteChars in class AbstractMarshallerjava.io.IOException
public void writeUTF(java.lang.String s)
throws java.io.IOException
writeUTF in interface java.io.DataOutputwriteUTF in class AbstractMarshallerjava.io.IOException
protected void doStart()
throws java.io.IOException
AbstractMarshaller
doStart in class AbstractMarshallerjava.io.IOException - if I/O exception occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||