Package com.itextpdf.xmp.impl
Class FixASCIIControlsReader
java.lang.Object
java.io.Reader
java.io.FilterReader
java.io.PushbackReader
com.itextpdf.xmp.impl.FixASCIIControlsReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
- Since:
- 22.08.2006
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private int
the result of the escaping sequenceprivate int
count the digits of the sequenceprivate int
the state of the automatonprivate static final int
private static final int
private static final int
private static final int
private static final int
private static final int
Fields inherited from class java.io.FilterReader
in
-
Constructor Summary
ConstructorsConstructorDescriptionThe look-ahead size is 6 at maximum («) -
Method Summary
Modifier and TypeMethodDescriptionprivate char
processChar
(char ch) Processes numeric escaped chars to find out if they are a control character.int
read
(char[] cbuf, int off, int len) Methods inherited from class java.io.PushbackReader
close, mark, markSupported, read, ready, reset, skip, unread, unread, unread
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Field Details
-
STATE_START
private static final int STATE_START- See Also:
-
STATE_AMP
private static final int STATE_AMP- See Also:
-
STATE_HASH
private static final int STATE_HASH- See Also:
-
STATE_HEX
private static final int STATE_HEX- See Also:
-
STATE_DIG1
private static final int STATE_DIG1- See Also:
-
STATE_ERROR
private static final int STATE_ERROR- See Also:
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
state
private int statethe state of the automaton -
control
private int controlthe result of the escaping sequence -
digits
private int digitscount the digits of the sequence
-
-
Constructor Details
-
FixASCIIControlsReader
The look-ahead size is 6 at maximum («)- Parameters:
in
- a Reader- See Also:
-
-
Method Details
-
read
- Overrides:
read
in classPushbackReader
- Throws:
IOException
- See Also:
-
processChar
private char processChar(char ch) Processes numeric escaped chars to find out if they are a control character.- Parameters:
ch
- a char- Returns:
- Returns the char directly or as replacement for the escaped sequence.
-