/** * Get the URI resolver for unparsed text. * * @return the user-supplied unparsed text URI resolver if there is one, or the * system-defined one otherwise * @since 9.5 */ public UnparsedTextURIResolver getUnparsedTextURIResolver() { return contextObject.getController().getUnparsedTextURIResolver(); }
/** * Get the URI resolver for unparsed text. * * @return the user-supplied unparsed text URI resolver if there is one, or the * system-defined one otherwise * @since 9.5 */ public UnparsedTextURIResolver getUnparsedTextURIResolver() { return contextObject.getController().getUnparsedTextURIResolver(); }
/** * Create a UnparsedTextIterator over a given file * * @param absoluteURI the URI identifying the file * @param context the dynamic evaluation context * @param encoding the expected encoding of the file * @param location the location of the instruction being executed * @throws XPathException if a dynamic error occurs */ public UnparsedTextIterator(URI absoluteURI, /*@NotNull*/ XPathContext context, String encoding, Location location) throws XPathException { Configuration config = context.getConfiguration(); Reader reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); // Note: this relies on the fact that LineNumberReader use the same definition of line endings as the unparsed-text-lines() // function. this.reader = new LineNumberReader(reader); this.uri = absoluteURI; this.context = context; this.checker = context.getConfiguration().getValidCharacterChecker(); this.encoding = encoding; this.location = location; }
/** * Create a UnparsedTextIterator over a given file * * @param absoluteURI the URI identifying the file * @param context the dynamic evaluation context * @param encoding the expected encoding of the file * @param location the location of the instruction being executed * @throws XPathException if a dynamic error occurs */ public UnparsedTextIterator(URI absoluteURI, /*@NotNull*/ XPathContext context, String encoding, Location location) throws XPathException { Configuration config = context.getConfiguration(); Reader reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); // Note: this relies on the fact that LineNumberReader use the same definition of line endings as the unparsed-text-lines() // function. this.reader = new LineNumberReader(reader); this.uri = absoluteURI; this.context = context; this.checker = context.getConfiguration().getValidCharacterChecker(); this.encoding = encoding; this.location = location; }
Reader reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); try { FastStringBuffer sb = new FastStringBuffer(2048);
Reader reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); try { FastStringBuffer sb = new FastStringBuffer(2048);
Reader reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); try { FastStringBuffer sb = new FastStringBuffer(2048);
reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); } catch (XPathException err) { err.maybeSetErrorCode("FOUT1170");
reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); } catch (XPathException err) { err.maybeSetErrorCode("FOUT1170");
reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); } catch (XPathException err) { err.maybeSetErrorCode("FOUT1170");
reader = context.getController().getUnparsedTextURIResolver().resolve(absoluteURI, encoding, config); } catch (XPathException err) { err.maybeSetErrorCode("FOUT1170");