Class LineOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class LineOutputStream
    extends FilterOutputStream
    This class is to support writing out Strings as a sequence of bytes terminated by a CRLF sequence. The String must contain only US-ASCII characters.

    The expected use is to write out RFC822 style headers to an output stream.

    • Constructor Detail

      • LineOutputStream

        public LineOutputStream​(OutputStream out)
      • LineOutputStream

        public LineOutputStream​(OutputStream out,
                                boolean allowutf8)
        out - the OutputStream
        allowutf8 - allow UTF-8 characters?
        JavaMail 1.6