Package com.github.javaparser
Class UnicodeEscapeProcessingProvider
java.lang.Object
com.github.javaparser.UnicodeEscapeProcessingProvider
- All Implemented Interfaces:
Provider,Closeable,AutoCloseable
Provider un-escaping unicode escape sequences in the input sequence.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProcessor keeping track of the current line and column in a stream of incoming characters.static classAn algorithm mappingPositionform two corresponding files. -
Constructor Summary
ConstructorsConstructorDescriptionUnicodeEscapeProcessingProvider(int bufferSize, Provider input)Creates aUnicodeEscapeProcessingProvider.Creates aUnicodeEscapeProcessingProvider. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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 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
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getPositionMapping
TheUnicodeEscapeProcessingProvider.PositionMappingbeing built during processing the file.
-