Class HTML


public class HTML extends Encoding
Author:
user
  • Constructor Details

    • HTML

      public HTML()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class Encoding
    • encode

      public String encode(byte[] in) throws EncodingException
      Description copied from class: Encoding
      Encode a byte array to a ASCII or ISO-8859-1 String. Output must be SMTP-safe: Line length of 998 or less, using SMTP-safe characters, followed by \r\n, and must not start with a '.' unless escaped by a 2nd dot. For some encodings, max line length is 76.
      Specified by:
      encode in class Encoding
      Parameters:
      in -
      Returns:
      Encoded string.
      Throws:
      EncodingException
    • encode

      public String encode(String str) throws EncodingException
      Description copied from class: Encoding
      Encode a (UTF-8) String to a ASCII or ISO-8859-1 String. Output must be SMTP-safe: Line length of 998 or less, using SMTP-safe characters, followed by \r\n, and must not start with a '.' unless escaped by a 2nd dot. For some encodings, max line length is 76. This implementation just converts the string to a byte array and then calls encode(byte[]). Most classes will not need to override.
      Overrides:
      encode in class Encoding
      Parameters:
      str -
      Throws:
      EncodingException
      See Also:
    • decode

      public void decode(InputStream in, Buffer out) throws DecodingException
      Specified by:
      decode in class Encoding
      Parameters:
      in -
      Throws:
      DecodingException
      See Also: