Tabnine Logo
InputFactoryImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
InputFactoryImpl
in
com.fasterxml.aalto.stax

Best Java code snippets using com.fasterxml.aalto.stax.InputFactoryImpl (Showing top 20 results out of 315)

origin: com.fasterxml/aalto-xml

public SAXParserFactoryImpl()
{
  // defaults should be fine...
  mStaxFactory = new InputFactoryImpl();
}
origin: FasterXML/aalto-xml

@Override
public XMLEventReader createXMLEventReader(Reader r) throws XMLStreamException {
  return createXMLEventReader(null, r);
}
origin: FasterXML/aalto-xml

@Override
public XMLEventReader createXMLEventReader(String systemId, InputStream in)
  throws XMLStreamException
{
  return constructER(constructSR(systemId, in, true));
}
origin: jorabin/KeePassJava2

  public Boolean call() {
    try {
      XMLEventReader eventReader = new com.fasterxml.aalto.stax.InputFactoryImpl()
          .createXMLEventReader(pipedInputStream);
      XMLEventWriter eventWriter = new com.fasterxml.aalto.stax.OutputFactoryImpl()
          .createXMLEventWriter(outputStream);
      XMLEvent event = null;
      while (eventReader.hasNext()) {
        event = eventReader.nextEvent();
        event = eventTransformer.transform(event);
        eventWriter.add(event);
        eventWriter.flush();
      }
      eventReader.close();
      eventWriter.flush();
      eventWriter.close();
      outputStream.flush();
      outputStream.close();
    } catch (XMLStreamException | IOException e) {
      throw new IllegalStateException(e);
    }
    return true;
  }
};
origin: com.fasterxml/aalto-xml

@Override
public XMLStreamReader createXMLStreamReader(javax.xml.transform.Source src)
  throws XMLStreamException
{
  return constructSR(src, false);
}
origin: FasterXML/aalto-xml

  return constructSR2((Stax2Source) src, forEventReader);
} else if (src instanceof DOMSource) {
  autoCloseInput = false; // shouldn't matter
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  return DOMReaderImpl.createFrom((DOMSource) src, cfg);
} else {
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  return StreamReaderImpl.construct(ByteSourceBootstrapper.construct(cfg, in));
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  return StreamReaderImpl.construct(CharSourceBootstrapper.construct(cfg, r));
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  try {
    URL url = URLUtil.urlFromSystemId(sysId);
origin: FasterXML/aalto-xml

@Override
public XMLEventReader createXMLEventReader(XMLStreamReader sr)
  throws XMLStreamException
{
  return constructER(Stax2ReaderAdapter.wrapIfNecessary(sr));
}
origin: FasterXML/aalto-xml

@Override
public XMLStreamReader createXMLStreamReader(javax.xml.transform.Source src)
  throws XMLStreamException
{
  return constructSR(src, false);
}
origin: com.fasterxml/aalto-xml

  return constructSR2((Stax2Source) src, forEventReader);
} else if (src instanceof DOMSource) {
  autoCloseInput = false; // shouldn't matter
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  return DOMReaderImpl.createFrom((DOMSource) src, cfg);
} else {
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  return StreamReaderImpl.construct(ByteSourceBootstrapper.construct(cfg, in));
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  return StreamReaderImpl.construct(CharSourceBootstrapper.construct(cfg, r));
  ReaderConfig cfg = getNonSharedConfig(pubId, sysId, encoding, forEventReader, autoCloseInput);
  try {
    URL url = URLUtil.urlFromSystemId(sysId);
origin: com.fasterxml/aalto-xml

@Override
public XMLEventReader createXMLEventReader(XMLStreamReader sr)
  throws XMLStreamException
{
  return constructER(Stax2ReaderAdapter.wrapIfNecessary(sr));
}
origin: FasterXML/aalto-xml

public SAXParserFactoryImpl()
{
  // defaults should be fine...
  mStaxFactory = new InputFactoryImpl();
}
origin: FasterXML/aalto-xml

@Override
public XMLEventReader2 createXMLEventReader(URL src)
  throws XMLStreamException
{
  return constructER(constructSR(src, true));
}
origin: com.fasterxml/aalto-xml

@Override
public XMLStreamReader createXMLStreamReader(InputStream in)
  throws XMLStreamException
{
  return constructSR(in, null, false);
}

origin: com.fasterxml/aalto-xml

@Override
public XMLEventReader createXMLEventReader(Reader r) throws XMLStreamException {
  return createXMLEventReader(null, r);
}
origin: stackoverflow.com

 public void init() {
  XmlFactory factory = new XmlFactory(new InputFactoryImpl(),
      new CDataXmlOutputFactoryImpl());
  xmlMapper = new XmlMapper(factory);
  xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);
}
origin: com.fasterxml/aalto-xml

@Override
public XMLEventReader createXMLEventReader(String systemId, Reader r)
  throws XMLStreamException
{
  return constructER(constructSR(systemId, r, true));
}
origin: com.fasterxml/aalto-xml

@Override
public XMLStreamReader createXMLStreamReader(Reader r)
  throws XMLStreamException
{
  return constructSR(null, r, false);
}
origin: com.fasterxml/aalto-xml

@Override
public XMLEventReader createXMLEventReader(InputStream in) throws XMLStreamException {
  return createXMLEventReader(in, null);
}
origin: jorabin/KeePassJava2

public XmlInputStreamFilter(InputStream is, XmlEventTransformer transformer) throws XMLStreamException {
  this.inputStream = is;
  this.eventTransformer = transformer;
  XMLInputFactory inputFactory = new com.fasterxml.aalto.stax.InputFactoryImpl();
  this.xmlEventReader = inputFactory.createXMLEventReader(is);
  XMLOutputFactory outputFactory = new com.fasterxml.aalto.stax.OutputFactoryImpl();
  this.xmlEventWriter = outputFactory.createXMLEventWriter(xmlWriteStream);
}
origin: FasterXML/aalto-xml

@Override
public XMLEventReader createXMLEventReader(String systemId, Reader r)
  throws XMLStreamException
{
  return constructER(constructSR(systemId, r, true));
}
com.fasterxml.aalto.staxInputFactoryImpl

Javadoc

Aalto implementation of basic Stax factory (both javax.xml.stream.XMLInputFactory and org.codehaus.stax2.XMLInputFactory2) as well as API for producing non-blocking (async) parsers (that is, AsyncXMLInputFactory).

Most used methods

  • <init>
  • createXMLEventReader
  • constructER
  • constructSR
  • constructSR2
  • createAsyncFor
  • createEventAllocator
  • getNonSharedConfig
    Method called when a non-shared copy of the current configuration is needed. This is usually done wh
  • newInstance

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • CodeWhisperer alternatives
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