public abstract class AbstractCodec extends AbstractPlugIn implements Codec
| Modifier and Type | Field and Description |
|---|---|
protected Format |
inputFormat |
protected Format[] |
inputFormats |
protected boolean |
opened |
protected Format |
outputFormat |
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED| Constructor and Description |
|---|
AbstractCodec() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkInputBuffer(Buffer b) |
protected void |
dump(java.lang.String label,
Buffer buffer) |
protected Format |
getInputFormat() |
protected Format |
getOutputFormat() |
Format[] |
getSupportedInputFormats() |
abstract Format[] |
getSupportedOutputFormats(Format input) |
protected boolean |
isEOM(Buffer b) |
abstract int |
process(Buffer input,
Buffer output) |
protected void |
propagateEOM(Buffer b) |
Format |
setInputFormat(Format format) |
Format |
setOutputFormat(Format format) |
close, getName, open, resetaddControl, getControl, getControls, removeControlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetControl, getControlsprotected Format inputFormat
protected Format outputFormat
protected boolean opened
protected Format[] inputFormats
public Format[] getSupportedInputFormats()
getSupportedInputFormats in interface Codecpublic abstract Format[] getSupportedOutputFormats(Format input)
getSupportedOutputFormats in interface Codecpublic Format setInputFormat(Format format)
setInputFormat in interface Codecpublic Format setOutputFormat(Format format)
setOutputFormat in interface Codecprotected Format getInputFormat()
protected Format getOutputFormat()
protected boolean checkInputBuffer(Buffer b)
protected boolean isEOM(Buffer b)
protected void propagateEOM(Buffer b)
protected final void dump(java.lang.String label,
Buffer buffer)