Static Public Member Functions | |
static void | registerEncoder (String name, Class<?extends XMLEncoder > encoderClass) |
static void | registerDecoder (String name, Class<?extends XMLDecoder > decoderClass) |
static void | setDefaultCodec (String name) |
static String | getDefaultCodecName () |
If default codec has been set for this runtime using setDefaultCodec, use that value. | |
static XMLEncoder | getEncoder () |
Get instance of default encoder. | |
static XMLEncoder | getEncoder (String codecName) |
Get an instance of the specified encoder. | |
static XMLDecoder | getDecoder () |
Get instance of default decoder. | |
static XMLDecoder | getDecoder (String codecName) |
Get instance of specified decoder. | |
static Class<?extends XMLEncoder > | getEncoderClass (String codecName) |
static Class<?extends XMLDecoder > | getDecoderClass (String codecName) |
static Class<?extends XMLEncoder > | getDefaultEncoderClass () |
static Class<?extends XMLDecoder > | getDefaultDecoderClass () |
Static Protected Attributes | |
static String | _defaultCodec = null |
static HashMap< String, Class <?extends XMLEncoder > > | _registeredEncoders |
static HashMap< String, Class <?extends XMLDecoder > > | _registeredDecoders |
Static Package Functions | |
[static initializer] |
Allows new codecs to be registered on the fly for extensibility.
static String org.ccnx.ccn.impl.encoding.XMLCodecFactory.getDefaultCodecName | ( | ) | [static] |
If default codec has been set for this runtime using setDefaultCodec, use that value.
If not, go to SystemConfiguration to get either the command-line value if present or the compiled-in default.
static XMLEncoder org.ccnx.ccn.impl.encoding.XMLCodecFactory.getEncoder | ( | ) | [static] |
Get instance of default encoder.
static XMLEncoder org.ccnx.ccn.impl.encoding.XMLCodecFactory.getEncoder | ( | String | codecName | ) | [static] |
Get an instance of the specified encoder.
codecName |
static XMLDecoder org.ccnx.ccn.impl.encoding.XMLCodecFactory.getDecoder | ( | String | codecName | ) | [static] |
Get instance of specified decoder.
codecName |