Class EncodingManager


  • public class EncodingManager
    extends java.lang.Object
    This class will handle getting the appropriate encodings.
    Version:
    $Revision: 1.9 $
    Author:
    Ben Litchfield
    • Field Detail

      • INSTANCE

        public static final EncodingManager INSTANCE
        Default singleton instance of this class.
        Since:
        Apache PDFBox 1.3.0
    • Constructor Detail

      • EncodingManager

        public EncodingManager()
    • Method Detail

      • getStandardEncoding

        public Encoding getStandardEncoding()
        This will get the standard encoding.
        Returns:
        The standard encoding.
      • getEncoding

        public Encoding getEncoding​(COSName name)
                             throws java.io.IOException
        This will get an encoding by name.
        Parameters:
        name - The name of the encoding to get.
        Returns:
        The encoding that matches the name.
        Throws:
        java.io.IOException - if there is no encoding with that name.