Codota Logo
InputFactoryImpl.<init>
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.fasterxml.aalto.stax.InputFactoryImpl.<init> (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: com.fasterxml/aalto-xml

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

public SAXParserFactoryImpl()
{
  // defaults should be fine...
  mStaxFactory = new InputFactoryImpl();
}
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: 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: stackoverflow.com

byte[] msg = "<html>Very <b>simple</b> input document!</html>".getBytes();
  AsyncXMLStreamReader asyncReader = new InputFactoryImpl().createAsyncXMLStreamReader();
  final AsyncInputFeeder feeder = asyncReader.getInputFeeder();
  int inputPtr = 0; // as we feed byte at a time
  int type = 0;
  do {
   // May need to feed multiple "segments"
   while ((type = asyncReader.next()) == AsyncXMLStreamReader.EVENT_INCOMPLETE) {
    feeder.feedInput(msg, inputPtr++, 1);
    if (inputPtr >= msg.length) { // to indicate end-of-content (important for error handling)
     feeder.endOfInput();
    }
   }
   // and once we have full event, we just dump out event type (for now)
   System.out.println("Got event of type: "+type);
   // could also just copy event as is, using Stax, or do any other normal non-blocking handling:
   // xmlStreamWriter.copyEventFromReader(asyncReader, false);
  } while (type != AsyncXMLStreamReader.END_DOCUMENT);
origin: org.apache.olingo/odata-client-core

protected XmlMapper getXmlMapper() {
 final XmlMapper xmlMapper = new XmlMapper(
   new XmlFactory(new InputFactoryImpl(), new OutputFactoryImpl()), new JacksonXmlModule());
 xmlMapper.setInjectableValues(new InjectableValues.Std().addValue(Boolean.class, Boolean.FALSE));
 xmlMapper.addHandler(new DeserializationProblemHandler() {
  @Override
  public boolean handleUnknownProperty(final DeserializationContext ctxt, final JsonParser jp,
    final com.fasterxml.jackson.databind.JsonDeserializer<?> deserializer,
    final Object beanOrClass, final String propertyName)
    throws IOException, JsonProcessingException {
   // skip any unknown property
   ctxt.getParser().skipChildren();
   return true;
  }
 });
 return xmlMapper;
}
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: apache/olingo-odata4

protected XmlMapper getXmlMapper() {
 final XmlMapper xmlMapper = new XmlMapper(
   new XmlFactory(new InputFactoryImpl(), new OutputFactoryImpl()), new JacksonXmlModule());
 xmlMapper.setInjectableValues(new InjectableValues.Std().addValue(Boolean.class, Boolean.FALSE));
 xmlMapper.addHandler(new DeserializationProblemHandler() {
  @Override
  public boolean handleUnknownProperty(final DeserializationContext ctxt, final JsonParser jp,
    final com.fasterxml.jackson.databind.JsonDeserializer<?> deserializer,
    final Object beanOrClass, final String propertyName)
    throws IOException, JsonProcessingException {
   // skip any unknown property
   ctxt.getParser().skipChildren();
   return true;
  }
 });
 return xmlMapper;
}
origin: apache/streams

this.start = start;
this.end = end;
XmlFactory xmlFactory = new XmlFactory(new InputFactoryImpl(),
  new OutputFactoryImpl());
origin: CUTR-at-USF/SiriRestClient

XmlFactory f = new XmlFactory(new InputFactoryImpl(),
    new OutputFactoryImpl());
origin: georocket/georocket

Window window = new Window();
window.append(Buffer.buffer(xml));
AsyncXMLInputFactory xmlInputFactory = new InputFactoryImpl();
AsyncXMLStreamReader<AsyncByteArrayFeeder> reader =
  xmlInputFactory.createAsyncForByteArray();
com.fasterxml.aalto.staxInputFactoryImpl<init>

Popular methods of InputFactoryImpl

  • 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

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JPanel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now