public class ValidatingResourceParser
extends java.lang.Object
Constructor and Description |
---|
ValidatingResourceParser(ScanningContext context,
boolean isFramework)
Creates a new
ValidatingResourceParser |
Modifier and Type | Method and Description |
---|---|
boolean |
parse(java.lang.String path,
java.io.InputStream input)
Parse the given input and return false if it contains errors, or if
the context is already tagged as needing a full aapt run.
|
public ValidatingResourceParser(@NonNull ScanningContext context, boolean isFramework)
ValidatingResourceParser
context
- a context object with state for the current update, such
as a place to stash errors encounteredisFramework
- true if scanning a framework resourcepublic boolean parse(java.lang.String path, java.io.InputStream input) throws java.io.IOException
path
- the full OS path to the file being parsedinput
- the input stream of the XML to be parsed (will be closed by this method)java.io.IOException
- if reading the contents fails