|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.coffee.decode.DecoderFactory
public class DecoderFactory
Factory for creating Decoders and Encoders based
on the content of an Article
or on the name
of the encoding
Constructor Summary | |
---|---|
DecoderFactory()
|
Method Summary | |
---|---|
static Decoder |
createDecoder(Article a)
create the appropriate Decoder on the basis of the Article to decode. |
static Encoder |
createEncoder(java.lang.String encoding)
create an Encoder for the given encoding |
static java.lang.String[] |
getEncoders()
get the Encoders supported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecoderFactory()
Method Detail |
---|
public static final Decoder createDecoder(Article a) throws java.lang.Exception
The supplied article is added to the Decoder
with Decoder.decodePiece(String)
before
returning the Decoder
a
- Article, the Article which needs to be decoded
Exception,
- thrown if the Decoder.decodePiece(String)
was not succesfull.
java.lang.Exception
public static final Encoder createEncoder(java.lang.String encoding) throws CoffeeSpill
encoding
- String, case insensative name for the encoding, must
be one of the values in getEncoders()
CoffeeSpill,
- thrown if the encoding supplied is not supported
CoffeeSpill
public static final java.lang.String[] getEncoders()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |