Class UnicodeEscapeProcessingProvider
java.lang.Object
com.github.javaparser.UnicodeEscapeProcessingProvider
- All Implemented Interfaces:
Provider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProcessor keeping track of the current line and column in a stream of incoming characters.static final classAn algorithm mappingPositionform two corresponding files. -
Constructor Summary
ConstructorsConstructorDescriptionUnicodeEscapeProcessingProvider(int bufferSize, Provider input) Creates aUnicodeEscapeProcessingProvider.Creates aUnicodeEscapeProcessingProvider. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the stream and releases any system resources associated with it.TheUnicodeEscapeProcessingProvider.LineCounterof the input file.TheUnicodeEscapeProcessingProvider.LineCounterof the output file.TheUnicodeEscapeProcessingProvider.PositionMappingbeing built during processing the file.intread(char[] buffer, int offset, int len) Reads characters into an array
-
Constructor Details
-
UnicodeEscapeProcessingProvider
Creates aUnicodeEscapeProcessingProvider. -
UnicodeEscapeProcessingProvider
Creates aUnicodeEscapeProcessingProvider.
-
-
Method Details
-
getInputCounter
TheUnicodeEscapeProcessingProvider.LineCounterof the input file. -
getOutputCounter
TheUnicodeEscapeProcessingProvider.LineCounterof the output file. -
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
-
close
Description copied from interface:ProviderCloses the stream and releases any system resources associated with it.- Specified by:
closein interfaceProvider- Throws:
IOException
-
getPositionMapping
TheUnicodeEscapeProcessingProvider.PositionMappingbeing built during processing the file.
-