Class QuotedPrintableInputStream

java.lang.Object
java.io.InputStream
org.apache.james.mime4j.codec.QuotedPrintableInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class QuotedPrintableInputStream extends InputStream
Performs Quoted-Printable decoding on an underlying stream.
  • Field Details

  • Constructor Details

    • QuotedPrintableInputStream

      public QuotedPrintableInputStream(InputStream in, DecodeMonitor monitor)
    • QuotedPrintableInputStream

      protected QuotedPrintableInputStream(int bufsize, InputStream in, DecodeMonitor monitor)
    • QuotedPrintableInputStream

      protected QuotedPrintableInputStream(int bufsize, InputStream in, boolean strict)
    • QuotedPrintableInputStream

      public QuotedPrintableInputStream(InputStream in, boolean strict)
    • QuotedPrintableInputStream

      public QuotedPrintableInputStream(InputStream in)
  • Method Details

    • 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 AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
    • fillBuffer

      private int fillBuffer() throws IOException
      Throws:
      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 IOException
      Throws:
      IOException
    • read0

      private int read0(byte[] buffer, int off, int len) throws IOException
      Throws:
      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 IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • read

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