Package aQute.lib.utf8properties
Class PropertiesParser
- java.lang.Object
-
- aQute.lib.utf8properties.PropertiesParser
-
final class PropertiesParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
continuation
private char
current
private java.lang.String
file
private static byte[]
INFO
private static byte
KEY
private int
length
private int
line
private static byte
LINE
private int
marker
private static char
MAX_DELIMETER
private static char
MIN_DELIMETER
private int
n
private static byte
NOKEY
private int
pos
private java.util.Properties
properties
private Reporter
reporter
private char[]
source
private boolean
validKey
private static byte
WS
-
Constructor Summary
Constructors Constructor Description PropertiesParser(java.lang.String source, java.lang.String file, Reporter reporter, java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private char
backslash()
private java.lang.String
context()
private void
error(java.lang.String msg, java.lang.Object... args)
(package private) boolean
hasNext()
boolean
isEmptyOrComment(char c)
private boolean
isIn(byte delimeters)
private java.lang.String
key()
(package private) char
next()
(package private) void
parse()
(package private) char
peek()
(package private) void
skip(byte delimeters)
void
skipLine()
private void
skipWhitespace()
private java.lang.String
token(byte delimeters, boolean check)
-
-
-
Field Detail
-
source
private final char[] source
-
length
private final int length
-
reporter
private final Reporter reporter
-
file
private final java.lang.String file
-
MIN_DELIMETER
private static final char MIN_DELIMETER
- See Also:
- Constant Field Values
-
MAX_DELIMETER
private static final char MAX_DELIMETER
- See Also:
- Constant Field Values
-
INFO
private static final byte[] INFO
-
WS
private static final byte WS
- See Also:
- Constant Field Values
-
KEY
private static final byte KEY
- See Also:
- Constant Field Values
-
LINE
private static final byte LINE
- See Also:
- Constant Field Values
-
NOKEY
private static final byte NOKEY
- See Also:
- Constant Field Values
-
n
private int n
-
line
private int line
-
pos
private int pos
-
marker
private int marker
-
current
private char current
-
properties
private java.util.Properties properties
-
validKey
private boolean validKey
-
continuation
private boolean continuation
-
-
Constructor Detail
-
PropertiesParser
PropertiesParser(java.lang.String source, java.lang.String file, Reporter reporter, java.util.Properties properties)
-
-
Method Detail
-
hasNext
boolean hasNext()
-
next
char next()
-
skip
void skip(byte delimeters)
-
peek
char peek()
-
parse
void parse()
-
skipWhitespace
private void skipWhitespace()
-
isEmptyOrComment
public boolean isEmptyOrComment(char c)
-
skipLine
public void skipLine()
-
token
private final java.lang.String token(byte delimeters, boolean check)
-
key
private final java.lang.String key()
-
isIn
private final boolean isIn(byte delimeters)
-
backslash
private final char backslash()
-
error
private void error(java.lang.String msg, java.lang.Object... args)
-
context
private java.lang.String context()
-
-