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 voidclose()LineSeparatorgetDetectedLineEnding()intread(char[] buffer, int offset, int len)Reads characters into an array
-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getDetectedLineEnding
public LineSeparator getDetectedLineEnding()
-
read
public int read(char[] buffer, int offset, int len) throws IOExceptionDescription copied from interface:ProviderReads characters into an array- Specified by:
readin 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
-
-