StdMarshaller is an (abstract) implementation of Marshaller.
getContext
public final Context getContext()
getOffset
public int getOffset()
getState
public Chunk getState()
outputStream
public OutputStream outputStream()
prepare
protected void prepare()
throws JonathanException
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.
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.
b
- the byte.
writeBoolean
public void writeBoolean(boolean v)
throws JonathanException
Writes a boolean in a message.
v
- a boolean;
writeByte
public void writeByte(byte v)
throws JonathanException
Writes a byte in a message.
v
- a byte;
writeByteArray
public void writeByteArray(byte[] array,
int off,
int len)
throws JonathanException
Writes an array of bytes in a message.
array
- an array of bytes;
writeChar8
public void writeChar8(char v)
throws JonathanException
Writes a char in a message.
v
- a char;
writeMethod
public void writeMethod(Method method)
throws MarshalException
writeReference
public final void writeReference(Object value)
throws JonathanException
Method used by stubs when they need to send interfaces references.
writeString8
public void writeString8(String str)
throws JonathanException
Writes a string in a message.
str
- a string;
writeValue
public final void writeValue(Object value)
throws JonathanException