|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.objectweb.jeremie.presentation.std.StdMarshallerFactory.StdMarshaller
public abstract class StdMarshallerFactory.StdMarshaller
StdMarshaller is an (abstract) implementation of Marshaller.
Field Summary | |
---|---|
protected org.objectweb.jonathan.apis.kernel.Context |
context
|
protected org.objectweb.jonathan.resources.api.Chunk |
current
|
protected org.objectweb.jonathan.resources.api.Chunk |
first
|
protected int |
offset
|
protected org.objectweb.jeremie.presentation.std.StdMarshallerFactory.JRMIOutputStream |
os
|
protected int |
top
|
Constructor Summary | |
---|---|
StdMarshallerFactory.StdMarshaller()
|
Method Summary | |
---|---|
void |
close()
|
org.objectweb.jonathan.apis.kernel.Context |
getContext()
|
int |
getOffset()
|
org.objectweb.jonathan.resources.api.Chunk |
getState()
|
OutputStream |
outputStream()
|
protected void |
prepare()
|
void |
reset()
|
boolean |
sameContents(org.objectweb.jonathan.presentation.api.Marshaller other)
|
void |
setOffset(int off)
|
void |
write(byte[] array,
int off,
int len)
Writes 'len' bytes from the specified byte array starting at offset 'off' to this output message. |
void |
write(org.objectweb.jonathan.resources.api.Chunk chunk)
|
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)
Writes an exception thrown by a remote method invocation to an underlying stream. |
void |
writeMethod(Method method)
Writes the method in a remote method invocation to an underlying stream. |
void |
writeParameters(Object[] params)
Writes the arguments in a remote method invocation to an underlying stream. |
void |
writeReference(Object value)
Method used by stubs when they need to send interfaces references. |
void |
writeResult(Object result)
Writes the result of a remote method invocation to an underlying stream. |
void |
writeString8(String str)
Writes a string in a message. |
void |
writeValue(Object value)
|
Methods inherited from class java.io.OutputStream |
---|
flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonathan.presentation.api.Marshaller |
---|
isLittleEndian, writeChar16, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeString16 |
Field Detail |
---|
protected org.objectweb.jonathan.resources.api.Chunk first
protected org.objectweb.jonathan.resources.api.Chunk current
protected int offset
protected int top
protected org.objectweb.jeremie.presentation.std.StdMarshallerFactory.JRMIOutputStream os
protected org.objectweb.jonathan.apis.kernel.Context context
Constructor Detail |
---|
public StdMarshallerFactory.StdMarshaller()
Method Detail |
---|
public void write(org.objectweb.jonathan.resources.api.Chunk chunk)
write
in interface org.objectweb.jonathan.presentation.api.Marshaller
public org.objectweb.jonathan.resources.api.Chunk getState()
getState
in interface org.objectweb.jonathan.presentation.api.Marshaller
public int getOffset()
getOffset
in interface org.objectweb.jonathan.presentation.api.Marshaller
public void setOffset(int off)
setOffset
in interface org.objectweb.jonathan.presentation.api.Marshaller
public void reset()
reset
in interface org.objectweb.jonathan.presentation.api.Marshaller
public void close()
close
in interface Closeable
close
in interface org.objectweb.jonathan.presentation.api.Marshaller
close
in class OutputStream
public OutputStream outputStream()
outputStream
in interface org.objectweb.jonathan.presentation.api.Marshaller
public final org.objectweb.jonathan.apis.kernel.Context getContext()
getContext
in interface org.objectweb.jonathan.presentation.api.Marshaller
public final boolean sameContents(org.objectweb.jonathan.presentation.api.Marshaller other)
sameContents
in interface org.objectweb.jonathan.presentation.api.Marshaller
public void writeByte(byte v) throws org.objectweb.jonathan.apis.kernel.JonathanException
writeByte
in interface org.objectweb.jonathan.presentation.api.Marshaller
v
- a byte;
org.objectweb.jonathan.apis.kernel.JonathanException
- if an error occurs.public void writeBoolean(boolean v) throws org.objectweb.jonathan.apis.kernel.JonathanException
writeBoolean
in interface org.objectweb.jonathan.presentation.api.Marshaller
v
- a boolean;
org.objectweb.jonathan.apis.kernel.JonathanException
- if an error occurs.public void writeChar8(char v) throws org.objectweb.jonathan.apis.kernel.JonathanException
writeChar8
in interface org.objectweb.jonathan.presentation.api.Marshaller
v
- a char;
org.objectweb.jonathan.apis.kernel.JonathanException
- if an error occurs.public void writeString8(String str) throws org.objectweb.jonathan.apis.kernel.JonathanException
writeString8
in interface org.objectweb.jonathan.presentation.api.Marshaller
str
- a string;
org.objectweb.jonathan.apis.kernel.JonathanException
- if an error occurs.public final void writeReference(Object value) throws org.objectweb.jonathan.apis.kernel.JonathanException
writeReference
in interface org.objectweb.jonathan.presentation.api.Marshaller
exp
- the surrogate that must be sent;
org.objectweb.jonathan.apis.kernel.JonathanException
public final void writeValue(Object value) throws org.objectweb.jonathan.apis.kernel.JonathanException
writeValue
in interface org.objectweb.jonathan.presentation.api.Marshaller
org.objectweb.jonathan.apis.kernel.JonathanException
public void writeByteArray(byte[] array, int off, int len) throws org.objectweb.jonathan.apis.kernel.JonathanException
writeByteArray
in interface org.objectweb.jonathan.presentation.api.Marshaller
array
- an array of bytes;
org.objectweb.jonathan.apis.kernel.JonathanException
- if an error occurs.public final void write(int b) throws IOException
This method calls the write(byte) method.
write
in class OutputStream
b
- the byte.
IOException
- if no buffer to write to could be obtained.public final void write(byte[] array, int off, int len) throws IOException
write
in class OutputStream
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.
IOException
public void writeMethod(Method method) throws MarshalException
JRMIMarshaller
writeMethod
in interface JRMIMarshaller
method
- the method to be written.
MarshalException
- if something goes wrong.public void writeParameters(Object[] params) throws MarshalException
JRMIMarshaller
writeParameters
in interface JRMIMarshaller
params
- the objects representing the arguments.
MarshalException
- if something goes wrong.public void writeResult(Object result) throws MarshalException
JRMIMarshaller
writeResult
in interface JRMIMarshaller
result
- the object representing the result.
MarshalException
- if something goes wrong.public void writeException(Exception ex) throws MarshalException
JRMIMarshaller
writeException
in interface JRMIMarshaller
ex
- the thrown exception.
MarshalException
- if something goes wrong.protected void prepare() throws org.objectweb.jonathan.apis.kernel.JonathanException
org.objectweb.jonathan.apis.kernel.JonathanException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |