public XLibrary getStandardLibrary() { if (xStandardLibrary == null) { xStandardLibrary = new XLibrary(this, standardLibrary); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } } return xStandardLibrary; }
public XLibrary getStandardLibrary() { if (xStandardLibrary == null) { xStandardLibrary = new XLibrary(this, standardLibrary); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } } return xStandardLibrary; }
private XLibrary _useLibrary(XdmNode library) throws SaxonApiException { PipelineLibrary plibrary = parser.useLibrary(library); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } XLibrary xlibrary = new XLibrary(this, plibrary); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } return xlibrary; }
private XLibrary _useLibrary(XdmNode library) throws SaxonApiException { PipelineLibrary plibrary = parser.useLibrary(library); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } XLibrary xlibrary = new XLibrary(this, plibrary); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } return xlibrary; }
private XLibrary _loadLibrary(Input library) throws SaxonApiException, IOException { PipelineLibrary plibrary; switch (library.getKind()) { case URI: plibrary = parser.loadLibrary(library.getUri()); break; case INPUT_STREAM: plibrary = parser.loadLibrary(library.getInputStream(), library.getInputStreamUri()); break; default: throw new UnsupportedOperationException(format("Unsupported library kind '%s'", library.getKind())); } if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } XLibrary xlibrary = new XLibrary(this, plibrary); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } return xlibrary; }
private XLibrary _loadLibrary(Input library) throws SaxonApiException, IOException { PipelineLibrary plibrary; switch (library.getKind()) { case URI: plibrary = parser.loadLibrary(library.getUri()); break; case INPUT_STREAM: plibrary = parser.loadLibrary(library.getInputStream(), library.getInputStreamUri()); break; default: throw new UnsupportedOperationException(format("Unsupported library kind '%s'", library.getKind())); } if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } XLibrary xlibrary = new XLibrary(this, plibrary); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } return xlibrary; }