public synchronized Document readPolicy ( File file ) throws ParsingException { try { return builder . parse ( file ) ; } catch ( IOException ioe ) { throw new ParsingException ( "Failed to read the file" , ioe ) ; } catch ( SAXException saxe ) { throw new ParsingException ( "Failed to parse the file" , saxe ) ; } }
Tries to read an XACML policy or policy set from the given file .