Class LineEndingProcessingProvider

    • Constructor Detail

      • LineEndingProcessingProvider

        public LineEndingProcessingProvider​(Provider input)
      • LineEndingProcessingProvider

        public LineEndingProcessingProvider​(int bufferSize,
                                            Provider input)
    • Method Detail

      • getDetectedLineEnding

        public LineSeparator getDetectedLineEnding()
      • read

        public int read​(char[] buffer,
                        int offset,
                        int len)
                 throws IOException
        Description copied from interface: Provider
        Reads characters into an array
        Specified by:
        read in interface Provider
        Parameters:
        buffer - Destination buffer. May not be null.
        offset - Offset at which to start storing characters. Must be ≥ 0.
        len - The maximum possible number of characters to read. Must be ≥ 0.
        Returns:
        The number of characters read, or -1 at the end of the stream
        Throws:
        IOException - if reading fails