Class QuotedPrintableInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class QuotedPrintableInputStream
    extends java.io.InputStream
    Performs Quoted-Printable decoding on an underlying stream.
    • Constructor Detail

      • QuotedPrintableInputStream

        public QuotedPrintableInputStream​(java.io.InputStream in,
                                          DecodeMonitor monitor)
      • QuotedPrintableInputStream

        protected QuotedPrintableInputStream​(int bufsize,
                                             java.io.InputStream in,
                                             DecodeMonitor monitor)
      • QuotedPrintableInputStream

        protected QuotedPrintableInputStream​(int bufsize,
                                             java.io.InputStream in,
                                             boolean strict)
      • QuotedPrintableInputStream

        public QuotedPrintableInputStream​(java.io.InputStream in,
                                          boolean strict)
      • QuotedPrintableInputStream

        public QuotedPrintableInputStream​(java.io.InputStream in)
    • Method Detail

      • getBufferRecycler

        public static BufferRecycler getBufferRecycler()
      • close

        public void close()
        Terminates Quoted-Printable coded content. This method does NOT close the underlying input stream.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
      • fillBuffer

        private int fillBuffer()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getnext

        private int getnext()
      • peek

        private int peek​(int i)
      • transfer

        private int transfer​(int b,
                             byte[] buffer,
                             int from,
                             int to,
                             boolean keepblanks)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • read0

        private int read0​(byte[] buffer,
                          int off,
                          int len)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • convert

        private int convert​(int c)
        Converts '0' => 0, 'A' => 10, etc.
        Parameters:
        c - ASCII character value.
        Returns:
        Numeric value of hexadecimal character.
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException