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
Modifier and TypeClassDescriptionstatic class
Processor keeping track of the current line and column in a stream of incoming characters.static class
An algorithm mappingPosition
form two corresponding files. -
Constructor Summary
ConstructorDescriptionUnicodeEscapeProcessingProvider(int bufferSize, Provider input)
Creates aUnicodeEscapeProcessingProvider
.Creates aUnicodeEscapeProcessingProvider
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
TheUnicodeEscapeProcessingProvider.LineCounter
of the input file.TheUnicodeEscapeProcessingProvider.LineCounter
of the output file.TheUnicodeEscapeProcessingProvider.PositionMapping
being built during processing the file.int
read(char[] buffer, int offset, int len)
Reads characters into an array
-
Constructor Details
-
UnicodeEscapeProcessingProvider
Creates aUnicodeEscapeProcessingProvider
. -
UnicodeEscapeProcessingProvider
Creates aUnicodeEscapeProcessingProvider
.
-
-
Method Details
-
getInputCounter
TheUnicodeEscapeProcessingProvider.LineCounter
of the input file. -
getOutputCounter
TheUnicodeEscapeProcessingProvider.LineCounter
of the output file. -
read
Description copied from interface:Provider
Reads characters into an array- Specified by:
read
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getPositionMapping
TheUnicodeEscapeProcessingProvider.PositionMapping
being built during processing the file.
-