public abstract class AbstractCodec extends java.lang.Object implements Codec
| Modifier and Type | Field and Description |
|---|---|
protected Format |
inputFormat |
protected Format[] |
inputFormats |
protected java.lang.String |
name |
protected Format |
outputFormat |
protected Format[] |
outputFormats |
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED| Constructor and Description |
|---|
AbstractCodec(Format[] supportedInputOutputFormats) |
AbstractCodec(Format[] supportedInputFormats,
Format[] supportedOutputFormats) |
| Modifier and Type | Method and Description |
|---|---|
Format |
getInputFormat() |
Format[] |
getInputFormats() |
java.lang.String |
getName() |
Format |
getOutputFormat() |
Format[] |
getOutputFormats(Format input) |
void |
reset() |
Format |
setInputFormat(Format f) |
Format |
setOutputFormat(Format f) |
java.lang.String |
toString() |
protected Format[] inputFormats
protected Format[] outputFormats
protected Format inputFormat
protected Format outputFormat
protected java.lang.String name
public AbstractCodec(Format[] supportedInputOutputFormats)
public Format[] getInputFormats()
getInputFormats in interface Codecpublic Format[] getOutputFormats(Format input)
getOutputFormats in interface Codecpublic Format setInputFormat(Format f)
setInputFormat in interface Codecpublic Format setOutputFormat(Format f)
setOutputFormat in interface Codecpublic Format getInputFormat()
getInputFormat in interface Codecpublic Format getOutputFormat()
getOutputFormat in interface Codecpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All Rights Reserved.