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 ProviderThe "other" provider which we are wrapping around / reading from.private intThe number of characters in_data.private intThe position in_datawhere to read the next source character from.private static final intprivate static final intprivate final Map<LineSeparator, Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the stream and releases any system resources associated with it.private intprivate booleanprivate intRetrieves the next un-escaped character from the buffered_input.intread(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_datawhere to read the next source character from. -
eolCounts
-
-
Constructor Details
-
LineEndingProcessingProvider
-
LineEndingProcessingProvider
-
-
Method Details
-
close
Description copied from interface:ProviderCloses the stream and releases any system resources associated with it.- Specified by:
closein 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
-1if no more input is available. - Throws:
IOException
-
read
Description copied from interface:ProviderReads characters into an array- Specified by:
readin 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
-