类 CodecUtil

java.lang.Object
com.sh.mail.mime4j.codec.CodecUtil

public class CodecUtil extends Object

Description:

Title:首亨软件 - TSS/CRM等

从以下版本开始:
Aug 16, 2012
  • 构造器详细资料

    • CodecUtil

      public CodecUtil()
  • 方法详细资料

    • copy

      public static void copy(InputStream in, OutputStream out) throws IOException
      Copies the contents of one stream to the other.
      参数:
      in - not null
      out - not null
      抛出:
      IOException - IOException
    • encodeQuotedPrintableBinary

      public static void encodeQuotedPrintableBinary(InputStream in, OutputStream out) throws IOException
      Encodes the given stream using Quoted-Printable. This assumes that stream is binary and therefore escapes all line endings.
      参数:
      in - not null
      out - not null
      抛出:
      IOException - IOException
    • encodeQuotedPrintable

      public static void encodeQuotedPrintable(InputStream in, OutputStream out) throws IOException
      Encodes the given stream using Quoted-Printable. This assumes that stream is text and therefore does not escape all line endings.
      参数:
      in - not null
      out - not null
      抛出:
      IOException - IOException
    • encodeBase64

      public static void encodeBase64(InputStream in, OutputStream out) throws IOException
      Encodes the given stream using base64.
      参数:
      in - not null
      out - not null
      抛出:
      IOException - if an I/O error occurs
    • wrapQuotedPrintable

      public static OutputStream wrapQuotedPrintable(OutputStream out, boolean binary) throws IOException
      Wraps the given stream in a Quoted-Printable encoder.
      参数:
      out - not null
      binary - boolean
      返回:
      encoding outputstream
      抛出:
      IOException - IOException
    • wrapBase64

      public static OutputStream wrapBase64(OutputStream out) throws IOException
      Wraps the given stream in a Base64 encoder.
      参数:
      out - not null
      返回:
      encoding outputstream
      抛出:
      IOException - IOException