Package aQute.lib.utf8properties
Class PropertiesParser
java.lang.Object
aQute.lib.utf8properties.PropertiesParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate charprivate final Stringprivate static final byte[]private static final byteprivate final intprivate intprivate static final byteprivate intprivate static final charprivate static final charprivate intprivate static final byteprivate intprivate Propertiesprivate final Reporterprivate final char[]private final Collection<String> private booleanprivate static final byte -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesParser(String source, String file, Reporter reporter, Properties properties, Collection<String> syntaxHeaders) -
Method Summary
Modifier and TypeMethodDescriptionprivate charprivate Stringcontext()private intprivate void(package private) booleanhasNext()private voidinvalidWhitespace(int quote, String type) (package private) booleanisEmptyOrComment(char c) private booleanisEven(int count) private booleanisIn(byte delimeters) private booleanisQuote(char tmp) private booleanisSyntaxHeader(String key) private Stringkey()(package private) charnext()(package private) voidparse()(package private) charpeek()(package private) voidskip(byte delimeters) (package private) voidskipLine()private voidprivate Stringtoken(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
-