Package aQute.lib.utf8properties
Class PropertiesParser
java.lang.Object
aQute.lib.utf8properties.PropertiesParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private char
private final String
private static final byte[]
private static final byte
private final int
private int
private static final byte
private int
private static final char
private static final char
private int
private static final byte
private int
private Properties
private final Reporter
private final char[]
private final Collection<String>
private boolean
private static final byte
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesParser
(String source, String file, Reporter reporter, Properties properties, Collection<String> syntaxHeaders) -
Method Summary
Modifier and TypeMethodDescriptionprivate char
private String
context()
private int
private void
(package private) boolean
hasNext()
private void
invalidWhitespace
(int quote, String type) (package private) boolean
isEmptyOrComment
(char c) private boolean
isEven
(int count) private boolean
isIn
(byte delimeters) private boolean
isQuote
(char tmp) private boolean
isSyntaxHeader
(String key) private String
key()
(package private) char
next()
(package private) void
parse()
(package private) char
peek()
(package private) void
skip
(byte delimeters) (package private) void
skipLine()
private void
private String
token
(byte delimeters, boolean check)
-
Field Details
-
source
private final char[] source -
length
private final int length -
reporter
-
file
-
MIN_DELIMETER
private static final char MIN_DELIMETER- See Also:
-
MAX_DELIMETER
private static final char MAX_DELIMETER- See Also:
-
INFO
private static final byte[] INFO -
WS
private static final byte WS- See Also:
-
KEY
private static final byte KEY- See Also:
-
LINE
private static final byte LINE- See Also:
-
NOKEY
private static final byte NOKEY- See Also:
-
n
private int n -
line
private int line -
pos
private int pos -
marker
private int marker -
current
private char current -
properties
-
validKey
private boolean validKey -
continuation
private boolean continuation -
syntaxHeaders
-
-
Constructor Details
-
PropertiesParser
PropertiesParser(String source, String file, Reporter reporter, Properties properties, Collection<String> syntaxHeaders)
-
-
Method Details
-
hasNext
boolean hasNext() -
next
char next() -
skip
void skip(byte delimeters) -
peek
char peek() -
parse
void parse() -
isSyntaxHeader
-
skipWhitespace
private void skipWhitespace() -
isEmptyOrComment
boolean isEmptyOrComment(char c) -
skipLine
void skipLine() -
token
-
isQuote
private boolean isQuote(char tmp) -
isEven
private boolean isEven(int count) -
countBackslashesAtEnd
-
invalidWhitespace
-
key
-
isIn
private boolean isIn(byte delimeters) -
backslash
private char backslash() -
error
-
context
-