# Package net.sf.okapi.common.encoder

Classes to implement and manage encoders for different file formats.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  IEncoder | Provides common methods to encode/escape text to a specific format.

- Class Summary
  Class | Description
  --- | ---
  CDATAEncoder |
  DefaultEncoder | Implements `IEncoder` for non-specific formats.
  DTDEncoder | Implements `IEncoder` for DTD text.
  EncoderManager | Provides caching and lookup mechanism for the text encoders used when writing out text processed by a filter.
  HtmlEncoder | Implements `IEncoder` for HTML format.
  JSONEncoder | Implements `IEncoder` for JSON format.
  OpenXMLEncoder | Implements `IEncoder` for the Open XML format.
  PHPContentEncoder | Implements `IEncoder` for JSON format.
  POEncoder | Implements `IEncoder` for PO file format.
  PropertiesEncoder | Implements `IEncoder` for properties-type format.
  TSEncoder | Implements `IEncoder` for TS file format.
  XMLEncoder | Implements `IEncoder` for XML format.

- Enum Summary
  Enum | Description
  --- | ---
  EncoderContext | Values for the context of the encoder.
  QuoteMode | Specifies the behavior for the escaping of single and double quotes.

## Package net.sf.okapi.common.encoder Description

Classes to implement and manage encoders for different file formats.

This package includes various implementations of the IEncoder interface and of an encoder manager. Encoders are used by ISkeletonWriter object and ILayerProvider objects to provide format-specific handling of the text to output, for example to escape special characters.