|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.codec.CodecInputOutputImpl
public class CodecInputOutputImpl
Basic implementation of the CodecInputOutput
interface.
Field Summary | |
---|---|
protected Object |
input
|
protected Object |
output
|
Constructor Summary | |
---|---|
CodecInputOutputImpl()
Default constructor |
|
CodecInputOutputImpl(Object input,
Object output)
|
Method Summary | |
---|---|
Object |
getInput()
Returns an input that can be used to read data to decode. |
Object |
getOutput()
Returns an output that can be used to write encoded data. |
Reference<? extends Recyclable> |
getReference()
Returns the reference object set by the Recyclable.setReference(Reference)
method. |
void |
recycle()
Recycles the object. |
void |
setInput(Object input)
Set the input. |
void |
setOutput(Object output)
Set the output. |
void |
setReference(Reference<? extends Recyclable> reference)
Sets a Reference object that can be used by object pool
implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object input
protected Object output
Constructor Detail |
---|
public CodecInputOutputImpl()
public CodecInputOutputImpl(Object input, Object output)
input
- the inputoutput
- the outputMethod Detail |
---|
public Object getInput() throws IOException
CodecInputOutput
getInput
in interface CodecInputOutput
IOException
- if the input can't be created.CodecInputOutput.getInput()
public void setInput(Object input)
CodecInputOutput
MessageCodec
that use
specialized input. If this object is used to decode another message, the
codec can reuse its specialized input.
setInput
in interface CodecInputOutput
input
- the new input.CodecInputOutput.setInput(Object)
public Object getOutput() throws IOException
CodecInputOutput
getOutput
in interface CodecInputOutput
IOException
- if the output can't be created.CodecInputOutput.getOutput()
public void setOutput(Object output)
CodecInputOutput
MessageCodec
that use
specialized output. If this object is used to decode another message, the
codec can reuse its specialized output.
setOutput
in interface CodecInputOutput
output
- the new output.CodecInputOutput.setOutput(Object)
public void recycle()
Recyclable
recycle
in interface Recyclable
Recyclable.recycle()
public void setReference(Reference<? extends Recyclable> reference)
Recyclable
Reference
object that can be used by object pool
implementation. This field must not be erase by the
Recyclable.recycle()
method.
setReference
in interface Recyclable
reference
- a Reference
object that can be used by object pool
implementation.Recyclable.setReference(Reference)
public Reference<? extends Recyclable> getReference()
Recyclable
Recyclable.setReference(Reference)
method.
getReference
in interface Recyclable
Reference
object that can be used by object pool
implementation.Recyclable.getReference()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |