Search in sources :

Example 11 with PatternScanner

use of android.filterfw.io.PatternScanner in project android_frameworks_base by AOSPA.

the class TextGraphReader method readKeyValueAssignments.

@Override
public KeyValueMap readKeyValueAssignments(String assignments) throws GraphIOException {
    final Pattern ignorePattern = Pattern.compile("\\s+");
    PatternScanner scanner = new PatternScanner(assignments, ignorePattern);
    return readKeyValueAssignments(scanner, null);
}
Also used : Pattern(java.util.regex.Pattern) PatternScanner(android.filterfw.io.PatternScanner)

Example 12 with PatternScanner

use of android.filterfw.io.PatternScanner in project android_frameworks_base by ResurrectionRemix.

the class TextGraphReader method readKeyValueAssignments.

@Override
public KeyValueMap readKeyValueAssignments(String assignments) throws GraphIOException {
    final Pattern ignorePattern = Pattern.compile("\\s+");
    PatternScanner scanner = new PatternScanner(assignments, ignorePattern);
    return readKeyValueAssignments(scanner, null);
}
Also used : Pattern(java.util.regex.Pattern) PatternScanner(android.filterfw.io.PatternScanner)

Aggregations

PatternScanner (android.filterfw.io.PatternScanner)12 Pattern (java.util.regex.Pattern)12 KeyValueMap (android.filterfw.core.KeyValueMap)6 GraphIOException (android.filterfw.io.GraphIOException)6 String (java.lang.String)6