public abstract class AbstractCodec extends Object implements Codec
AbstractCodec.| Modifier and Type | Field and Description |
|---|---|
protected Format |
inputFormat |
protected Format[] |
inputFormats |
protected 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()
Lists all of the input formats that this codec accepts.
|
String |
getName()
Returns a human readable name of the codec.
|
Format |
getOutputFormat() |
Format[] |
getOutputFormats(Format input)
Lists all of the output formats that this codec can generate
with the provided input format.
|
void |
reset()
Empty implementation of the reset method.
|
Format |
setInputFormat(Format f)
Sets the input format.
|
Format |
setOutputFormat(Format f)
Sets the output format.
|
String |
toString() |
protected Format[] inputFormats
protected Format[] outputFormats
protected Format inputFormat
protected Format outputFormat
protected String name
public AbstractCodec(Format[] supportedInputOutputFormats)
public Format[] getInputFormats()
CodecgetInputFormats in interface Codecpublic Format[] getOutputFormats(Format input)
CodecgetOutputFormats in interface Codecpublic Format setInputFormat(Format f)
CodecsetInputFormat in interface Codecpublic Format setOutputFormat(Format f)
CodecsetOutputFormat in interface Codecpublic Format getInputFormat()
getInputFormat in interface Codecpublic Format getOutputFormat()
getOutputFormat in interface Codecpublic String getName()
Codecpublic void reset()
Copyright © 2014. All Rights Reserved.