Tabnine Logo
StreamBootstrapper.bootstrapInput
Code IndexAdd Tabnine to your IDE (free)

How to use
bootstrapInput
method
in
com.ctc.wstx.io.StreamBootstrapper

Best Java code snippets using com.ctc.wstx.io.StreamBootstrapper.bootstrapInput (Showing top 16 results out of 315)

origin: org.codehaus.woodstox/woodstox-core-asl

private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
                       String refName, int xmlVersion,
                       URL url,
                       String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.inputStreamFromURL(url);
  SystemId sysId = SystemId.construct(url);
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, sysId, in);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, r);
}
origin: org.codehaus.woodstox/woodstox-core-asl

private static WstxInputSource sourceFromIS(WstxInputSource parent,
    ReaderConfig cfg, String refName, int xmlVersion,
    InputStream is, String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, SystemId.construct(sysId), is);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, SystemId.construct(sysId, ctxt),
        xmlVersion, r);
}
origin: woodstox/wstx-asl

private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
                       String refName, int xmlVersion,
                       URL url,
                       String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.optimizedStreamFromURL(url);
  String sysId = url.toExternalForm();
  StreamBootstrapper bs = StreamBootstrapper.getInstance(in, pubId, sysId);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, url, r);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
                       String refName, int xmlVersion,
                       URL url,
                       String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.optimizedStreamFromURL(url);
  String sysId = url.toExternalForm();
  StreamBootstrapper bs = StreamBootstrapper.getInstance(in, pubId, sysId);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, url, r);
}
origin: woodstox/wstx-lgpl

private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
                       String refName, int xmlVersion,
                       URL url,
                       String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.optimizedStreamFromURL(url);
  String sysId = url.toExternalForm();
  StreamBootstrapper bs = StreamBootstrapper.getInstance(in, pubId, sysId);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, url, r);
}
origin: woodstox/wstx-asl

private static WstxInputSource sourceFromIS(WstxInputSource parent,
                      ReaderConfig cfg,
                      String refName, int xmlVersion,
                      InputStream is,
                      String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(is, pubId, sysId);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, ctxt, r);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

private static WstxInputSource sourceFromIS(WstxInputSource parent,
                      ReaderConfig cfg,
                      String refName, int xmlVersion,
                      InputStream is,
                      String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(is, pubId, sysId);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, ctxt, r);
}
origin: woodstox/wstx-lgpl

private static WstxInputSource sourceFromIS(WstxInputSource parent,
                      ReaderConfig cfg,
                      String refName, int xmlVersion,
                      InputStream is,
                      String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(is, pubId, sysId);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, ctxt, r);
}
origin: org.codehaus.woodstox/woodstox-core-lgpl

private static WstxInputSource sourceFromIS(WstxInputSource parent,
    ReaderConfig cfg, String refName, int xmlVersion,
    InputStream is, String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, SystemId.construct(sysId), is);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, SystemId.construct(sysId, ctxt),
        xmlVersion, r);
}
origin: org.codehaus.woodstox/woodstox-core-lgpl

private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
                       String refName, int xmlVersion,
                       URL url,
                       String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.inputStreamFromURL(url);
  SystemId sysId = SystemId.construct(url);
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, sysId, in);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, r);
}
origin: com.fasterxml.woodstox/woodstox-core

@SuppressWarnings("resource")
private static WstxInputSource sourceFromIS(WstxInputSource parent,
    ReaderConfig cfg, String refName, int xmlVersion,
    InputStream is, String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, SystemId.construct(sysId), is);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, SystemId.construct(sysId, ctxt),
        xmlVersion, r);
}
origin: com.fasterxml.woodstox/woodstox-core

@SuppressWarnings("resource")
private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
    String refName, int xmlVersion,
    URL url,
    String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.inputStreamFromURL(url);
  SystemId sysId = SystemId.construct(url);
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, sysId, in);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, r);
}
origin: Nextdoor/bender

@SuppressWarnings("resource")
private static WstxInputSource sourceFromIS(WstxInputSource parent,
    ReaderConfig cfg, String refName, int xmlVersion,
    InputStream is, String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, SystemId.construct(sysId), is);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, SystemId.construct(sysId, ctxt),
        xmlVersion, r);
}
origin: Nextdoor/bender

@SuppressWarnings("resource")
private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
    String refName, int xmlVersion,
    URL url,
    String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.inputStreamFromURL(url);
  SystemId sysId = SystemId.construct(url);
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, sysId, in);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, r);
}
origin: FasterXML/woodstox

@SuppressWarnings("resource")
private static WstxInputSource sourceFromURL(WstxInputSource parent, ReaderConfig cfg,
    String refName, int xmlVersion,
    URL url,
    String pubId)
  throws IOException, XMLStreamException
{
  /* And then create the input source. Note that by default URL's
   * own input stream creation creates buffered reader -- for us
   * that's useless and wasteful (adds one unnecessary level of
   * caching, halving the speed due to copy operations needed), so
   * let's avoid it.
   */
  InputStream in = URLUtil.inputStreamFromURL(url);
  SystemId sysId = SystemId.construct(url);
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, sysId, in);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, sysId, xmlVersion, r);
}
origin: FasterXML/woodstox

@SuppressWarnings("resource")
private static WstxInputSource sourceFromIS(WstxInputSource parent,
    ReaderConfig cfg, String refName, int xmlVersion,
    InputStream is, String pubId, String sysId)
  throws IOException, XMLStreamException
{
  StreamBootstrapper bs = StreamBootstrapper.getInstance(pubId, SystemId.construct(sysId), is);
  Reader r = bs.bootstrapInput(cfg, false, xmlVersion);
  URL ctxt = parent.getSource();
  // If we got a real sys id, we do know the source...
  if (sysId != null && sysId.length() > 0) {
    ctxt = URLUtil.urlFromSystemId(sysId, ctxt);
  }
  return InputSourceFactory.constructEntitySource
    (cfg, parent, refName, bs, pubId, SystemId.construct(sysId, ctxt),
        xmlVersion, r);
}
com.ctc.wstx.ioStreamBootstrapperbootstrapInput

Popular methods of StreamBootstrapper

  • getInstance
    Factory method used when the underlying data provider is a pre-allocated block source, and no stream
  • <init>
  • checkMbKeyword
  • checkSbKeyword
  • checkTranslatedKeyword
  • ensureLoaded
  • getLocation
  • getNext
  • hasXmlDecl
  • loadMore
  • nextByte
  • nextMultiByte
  • nextByte,
  • nextMultiByte,
  • nextTranslated,
  • readXmlDecl,
  • reportNull,
  • reportUnexpectedChar,
  • reportWeirdUCS4,
  • reportXmlProblem,
  • resolveStreamEncoding

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now