Class EexecFilterDecode

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class EexecFilterDecode
    extends ASBufferedInFilter
    This is filter that decodes eexec coding in type 1 font files.
    Author:
    Sergey Shemyakov
    • Constructor Detail

      • EexecFilterDecode

        public EexecFilterDecode​(ASInputStream stream,
                                 boolean isCharstring)
                          throws IOException
        Constructor from stream.
        Parameters:
        stream - is eexec-encoded stream.
        isCharstring - is true if passed stream is encoded charstring.
        Throws:
        IOException
    • Method Detail

      • read

        public int read​(byte[] buffer,
                        int size)
                 throws IOException
        Decodes eexec encoded data and reads up to size encoded bytes into buffer.
        Overrides:
        read in class ASBufferedInFilter
        Parameters:
        buffer - is array into which data will be decoded.
        size - is maximal length of decoded data.
        Returns:
        amount of actually read bytes.
        Throws:
        IOException