org.objectweb.jeremie.presentation.std

Class StdMarshallerFactory.StdMarshaller

Enclosing Class:
StdMarshallerFactory
Implemented Interfaces:
JRMIMarshaller, Marshaller
Known Direct Subclasses:
StdMarshallerFactory.StdMarshallerL

public abstract class StdMarshallerFactory.StdMarshaller
extends OutputStream
implements JRMIMarshaller

StdMarshaller is an (abstract) implementation of Marshaller.

Field Summary

protected Context
context
protected Chunk
current
protected Chunk
first
protected int
offset
protected org.objectweb.jeremie.presentation.std.StdMarshallerFactory.JRMIOutputStream
os
protected int
top

Constructor Summary

StdMarshaller()

Method Summary

void
close()
Context
getContext()
int
getOffset()
Chunk
getState()
OutputStream
outputStream()
protected void
prepare()
void
reset()
boolean
sameContents(Marshaller other)
void
setOffset(int off)
void
write(Chunk chunk)
void
write(array[] , int off, int len)
Writes 'len' bytes from the specified byte array starting at offset 'off' to this output message.
void
write(int b)
Writes the specified byte to this message.
void
writeBoolean(boolean v)
Writes a boolean in a message.
void
writeByte(byte v)
Writes a byte in a message.
void
writeByteArray(byte[] array, int off, int len)
Writes an array of bytes in a message.
void
writeChar8(char v)
Writes a char in a message.
void
writeException(Exception ex)
void
writeMethod(Method method)
void
writeParameters(Object[] params)
void
writeReference(Object value)
Method used by stubs when they need to send interfaces references.
void
writeResult(Object result)
void
writeString8(String str)
Writes a string in a message.
void
writeValue(Object value)

Field Details

context

protected Context context


current

protected Chunk current


first

protected Chunk first


offset

protected int offset


os

protected org.objectweb.jeremie.presentation.std.StdMarshallerFactory.JRMIOutputStream os


top

protected int top

Constructor Details

StdMarshaller

public StdMarshaller()

Method Details

close

public void close()


getContext

public final Context getContext()


getOffset

public int getOffset()


getState

public Chunk getState()


outputStream

public OutputStream outputStream()


prepare

protected void prepare()
            throws JonathanException


reset

public void reset()


sameContents

public final boolean sameContents(Marshaller other)


setOffset

public void setOffset(int off)


write

public void write(Chunk chunk)


write

public final void write(array[] ,
                        int off,
                        int len)
            throws IOException
Writes 'len' bytes from the specified byte array starting at offset 'off' to this output message.

Parameters:
off - the start offset in the data.
len - the number of bytes to write.


write

public final void write(int b)
            throws IOException
Writes the specified byte to this message.

This method calls the write(byte) method.

Parameters:
b - the byte.


writeBoolean

public void writeBoolean(boolean v)
            throws JonathanException
Writes a boolean in a message.

Parameters:
v - a boolean;


writeByte

public void writeByte(byte v)
            throws JonathanException
Writes a byte in a message.

Parameters:
v - a byte;


writeByteArray

public void writeByteArray(byte[] array,
                           int off,
                           int len)
            throws JonathanException
Writes an array of bytes in a message.

Parameters:
array - an array of bytes;


writeChar8

public void writeChar8(char v)
            throws JonathanException
Writes a char in a message.

Parameters:
v - a char;


writeException

public void writeException(Exception ex)
            throws MarshalException
Specified by:
writeException in interface JRMIMarshaller


writeMethod

public void writeMethod(Method method)
            throws MarshalException


writeParameters

public void writeParameters(Object[] params)
            throws MarshalException
Specified by:
writeParameters in interface JRMIMarshaller


writeReference

public final void writeReference(Object value)
            throws JonathanException
Method used by stubs when they need to send interfaces references.

Parameters:


writeResult

public void writeResult(Object result)
            throws MarshalException
Specified by:
writeResult in interface JRMIMarshaller


writeString8

public void writeString8(String str)
            throws JonathanException
Writes a string in a message.

Parameters:
str - a string;


writeValue

public final void writeValue(Object value)
            throws JonathanException