org.apache.cocoon.components.serializers.encoding
Class CharsetFactory

java.lang.Object
  extended by org.apache.cocoon.components.serializers.encoding.CharsetFactory

public final class CharsetFactory
extends Object

Version:
CVS $Id: CharsetFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Pier Fumagalli, February 2003

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

newInstance

public static CharsetFactory newInstance()
Return an instance of this CharsetFactory.


getCharset

public Charset getCharset()
Return the Charset instance for the unknown charset.
All calls to the allows(...) method of the returned Charset will return true.


getDefaultCharset

public Charset getDefaultCharset()
Return the Charset instance for the default charset.


getCharset

public Charset getCharset(String name)
                   throws UnsupportedEncodingException
Return the Charset instance for a specifc charset.

Throws:
UnsupportedEncodingException - If the specified is invalid or cannot be accessed.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.