Class LineEndingProcessingProvider

  • All Implemented Interfaces:
    Provider

    public class LineEndingProcessingProvider
    extends Object
    implements Provider
    Provider un-escaping unicode escape sequences in the input sequence.
    • Constructor Detail

      • LineEndingProcessingProvider

        public LineEndingProcessingProvider​(Provider input)
      • LineEndingProcessingProvider

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

      • close

        public void close()
                   throws IOException
        Description copied from interface: Provider
        Closes the stream and releases any system resources associated with it.
        Specified by:
        close in interface Provider
        Throws:
        IOException
      • 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
        offset - Offset at which to start storing characters
        len - The maximum possible number of characters to read
        Returns:
        The number of characters read, or -1 if all read
        Throws:
        IOException