|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.components.serializers.encoding.CharsetFactory
public final class CharsetFactory
A factory for the charsets. The list of charsets is hard-coded, whenever the list changes this hard-coded list must be updated manually.
Method Summary | |
---|---|
Charset |
getCharset()
Return the Charset instance for the unknown charset. |
Charset |
getCharset(String name)
Return the Charset instance for a specifc charset. |
Charset |
getDefaultCharset()
Return the Charset instance for the default charset. |
static CharsetFactory |
newInstance()
Return an instance of this CharsetFactory . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CharsetFactory newInstance()
CharsetFactory
.
public Charset getCharset()
Charset
instance for the unknown charset.
allows(...)
method of the returned
Charset
will return true.
public Charset getDefaultCharset()
Charset
instance for the default charset.
public Charset getCharset(String name) throws UnsupportedEncodingException
Charset
instance for a specifc charset.
UnsupportedEncodingException
- If the specified is invalid or
cannot be accessed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |