Class LineTransformationOutputStream

    • Constructor Detail

      • LineTransformationOutputStream

        public LineTransformationOutputStream()
    • Method Detail

      • eol

        protected abstract void eol​(byte[] b,
                                    int len)
                             throws IOException
        Called for each end of the line.
        Parameters:
        b - Contents of the whole line, including the EOL code like CR/LF.
        len - Specifies the length of the valid contents in 'b'. The rest is garbage. This is so that the caller doesn't have to allocate an array of the exact size.
        Throws:
        IOException
      • forceEol

        public void forceEol()
                      throws IOException
        Forces the EOL behavior. Useful if the caller wants to make sure the buffered content is all processed, but without actually neither flushing nor closing the stream.
        Throws:
        IOException