/** * Creates an instance that will validate according to the given schema. * * @param schemaStream the XSD schema to use for schema validation * @throws IOException if the schema can't be read * @throws SAXException if the schema isn't valid */ public PolicyParser(InputStream schemaStream) throws IOException, SAXException { this(getSchema(schemaStream)); }
/** * Creates an instance that will validate according to the given schema. * * @param schemaStream the XSD schema to use for schema validation * @throws IOException if the schema can't be read * @throws SAXException if the schema isn't valid */ public PolicyParser(InputStream schemaStream) throws IOException, SAXException { this(getSchema(schemaStream)); }