Package com.github.javaparser
Class LineEndingProcessingProvider
java.lang.Object
com.github.javaparser.LineEndingProcessingProvider
- All Implemented Interfaces:
Provider
Provider
un-escaping unicode escape sequences in the input sequence.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final char[]
The buffer that we're storing data within.private final Provider
The "other" provider which we are wrapping around / reading from.private int
The number of characters in_data
.private int
The position in_data
where to read the next source character from.private static final int
private static final int
private final Map
<LineSeparator, Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the stream and releases any system resources associated with it.private int
private boolean
private int
Retrieves the next un-escaped character from the buffered_input
.int
read
(char[] buffer, int offset, int len) Reads characters into an array
-
Field Details
-
EOF
private static final int EOF- See Also:
-
DEFAULT_BUFFER_SIZE
private static final int DEFAULT_BUFFER_SIZE- See Also:
-
_input
The "other" provider which we are wrapping around / reading from. -
_data
private final char[] _dataThe buffer that we're storing data within. -
_len
private int _lenThe number of characters in_data
. -
_pos
private int _posThe position in_data
where to read the next source character from. -
eolCounts
-
-
Constructor Details
-
LineEndingProcessingProvider
-
LineEndingProcessingProvider
-
-
Method Details
-
close
Description copied from interface:Provider
Closes the stream and releases any system resources associated with it.- Specified by:
close
in interfaceProvider
- Throws:
IOException
-
fillBuffer
- Throws:
IOException
-
getDetectedLineEnding
-
isBufferEmpty
private boolean isBufferEmpty() -
nextBufferedChar
Retrieves the next un-escaped character from the buffered_input
.- Returns:
- The next character or
-1
if no more input is available. - Throws:
IOException
-
read
Description copied from interface:Provider
Reads characters into an array- Specified by:
read
in interfaceProvider
- Parameters:
buffer
- Destination bufferoffset
- Offset at which to start storing characterslen
- The maximum possible number of characters to read- Returns:
- The number of characters read, or -1 if all read
- Throws:
IOException
-