Package com.github.javaparser
Class LineEndingProcessingProvider
- java.lang.Object
-
- com.github.javaparser.LineEndingProcessingProvider
-
-
Constructor Summary
Constructors Constructor Description LineEndingProcessingProvider(int bufferSize, Provider input)
LineEndingProcessingProvider(Provider input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
LineSeparator
getDetectedLineEnding()
int
read(char[] buffer, int offset, int len)
Reads characters into an array
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- 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 interfaceProvider
- Parameters:
buffer
- Destination buffer. May not benull
.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
-
-