public void setPipeline(String uri) { setPipeline(new Input(uri)); }
public void reportResults() { if (title == null) { makeReport(results); } else { reporter.startTestSuite(); makeReport(results); reporter.endTestSuite(); } } }
public void setSaxonConfig(String saxonConfig) { if ("-".equals(saxonConfig)) { setSaxonConfig(new Input(System.in, "<stdin>")); } else { setSaxonConfig(new Input("file://" + fixUpURI(saxonConfig))); } }
public ProcessOutputReader(InputStream is, boolean asXML, boolean wrapLines, boolean showLines) { this.is = is; this.asXML = asXML; this.wrapLines = wrapLines; this.showLines = showLines; tree = new TreeWriter(runtime); }
public void setSaxonConfig(InputStream inputStream, String uri) { setSaxonConfig(new Input(inputStream, uri)); }
public void testXmlns() { XPointer xp = new XPointer(runtime, "xmlns(a=http://example.com/a) xmlns(b=http://example.com/b)", 1024000); assertNotNull(xp); xp = new XPointer(runtime, "xmlns(a=http://example.com/a)xmlns(b=http://example.com/b)", 1024000); assertNotNull(xp); xp = new XPointer(runtime, "xmlns(a=http://example.com/^(a^))xmlns(b=http://example.com/b)", 1024000); assertNotNull(xp); }
public void setProfile(OutputStream outputStream) { setProfile(new Output(outputStream)); }
public boolean processStartElement(XdmNode node) throws SaxonApiException { matcher.addStartElement(node, newName); matcher.addAttributes(node); return true; }
/** * Decodes data from Base64 notation, automatically * detecting gzip-compressed data and decompressing it. * * @param s the string to decode * @return the decoded data * @since 1.4 */ public static byte[] decode( String s ) { return decode( s, NO_OPTIONS ); }
/** * Encodes a byte array into Base64 notation. * Does not GZip-compress data. * * @param source The data to convert * @return the encoded bytes * @since 1.4 */ public static String encodeBytes( byte[] source ) { return encodeBytes( source, 0, source.length, NO_OPTIONS ); } // end encodeBytes
public static void main(String[] args) { XPointerTest test = new XPointerTest("command line xpointer tests"); test.testXmlns(); test.testSchemes(); }
@Override public StreamSource[] resolve(String moduleURI, String baseURI, String[] locations) throws XPathException { return realResolver.resolve(moduleURI, baseURI, locations); }
public void setPipeline(InputStream inputStream, String uri) { setPipeline(new Input(inputStream, uri)); }
public void testSchemes() { XPointer xp = new XPointer(runtime, "xmlns(a=http://example.com/a) a:unk(a=^^b)", 1024000); assertNotNull(xp); xp = new XPointer(runtime, "xmlns(a=http://example.com/a)xmlns(b=http://example.com/b) a:unk(a) b:unk(b)", 1024000); assertNotNull(xp); /* xp = new XPointer("xmlns(a=http://example.com/^(a^))xmlns(b=http://example.com/b) c:unk()", 1024000); assertNotNull(xp); */ } }
public void reportResults() { if (title == null) { makeReport(results); } else { reporter.startTestSuite(); makeReport(results); reporter.endTestSuite(); } } }