Package com.fasterxml.aalto.in

Examples of com.fasterxml.aalto.in.ReaderConfig


    public StreamReaderImpl(XmlScanner scanner)
    {
        _scanner = scanner;
        _currToken = START_DOCUMENT;
        ReaderConfig cfg = scanner.getConfig();
        _cfgCoalesceText = cfg.willCoalesceText();
        _cfgReportTextAsChars = !cfg.willReportCData();
    }
View Full Code Here


    public StreamReaderImpl(XmlScanner scanner)
    {
        _scanner = scanner;
        _currToken = START_DOCUMENT;
        ReaderConfig cfg = scanner.getConfig();
        _cfgCoalesceText = cfg.willCoalesceText();
        _cfgReportTextAsChars = !cfg.willReportCData();
    }
View Full Code Here

    public StreamReaderImpl(XmlScanner scanner)
    {
        _scanner = scanner;
        _currToken = START_DOCUMENT;
        ReaderConfig cfg = scanner.getConfig();
        _cfgCoalesceText = cfg.willCoalesceText();
        _cfgReportTextAsChars = !cfg.willReportCData();
    }
View Full Code Here

    /**********************************************************************
     */

    public InputFactoryImpl()
    {
        _config = new ReaderConfig();
    }
View Full Code Here

    @Override
    public AsyncXMLStreamReader createAsyncXMLStreamReader()
    {
      // TODO: pass system and/or public ids?
      ReaderConfig cfg = getNonSharedConfig(null, null, null, false, false);
      cfg.setActualEncoding("UTF-8");
      return new AsyncStreamReaderImpl(new AsyncUtfScanner(cfg));
    }
View Full Code Here

    }
   
    public AsyncXMLStreamReader createAsyncXMLStreamReader(final IllegalCharHandler illegalCharHandler)
    {
      // TODO: pass system and/or public ids?
      ReaderConfig cfg = getNonSharedConfig(null, null, null, false, false);
      cfg.setActualEncoding("UTF-8");
      cfg.setIllegalCharHandler(illegalCharHandler);
      return new AsyncStreamReaderImpl(new AsyncUtfScanner(cfg));
    }
View Full Code Here

    public ReaderConfig getNonSharedConfig(String systemId, String publicId,
                                           String extEncoding,
                                           boolean forEventReader,
                                           boolean forceAutoClose)
    {
        ReaderConfig cfg = _config.createNonShared(publicId, systemId, extEncoding);
        if (forEventReader) {
            /* No point in lazy parsing for event readers: no more efficient
             * (and possible less) since all data is needed, always; and
             * exceptions also get lazily thrown after the fact.
             */
            cfg.doParseLazily(false);
        }
        if (forceAutoClose) {
            cfg.doAutoCloseInput(true);
        }
        return cfg;
    }
View Full Code Here

    protected XMLStreamReader2 constructSR(InputStream in, String enc,
            boolean forEventReader)
        throws XMLStreamException
    {
        ReaderConfig cfg = getNonSharedConfig(null, null, enc, forEventReader, false);
        return StreamReaderImpl.construct(ByteSourceBootstrapper.construct(cfg, in));
    }
View Full Code Here

    protected XMLStreamReader2 constructSR(String systemId, Reader r,
                                           boolean forEventReader)
        throws XMLStreamException
    {
        ReaderConfig cfg = getNonSharedConfig(null, systemId, null, forEventReader, false);
        return StreamReaderImpl.construct(CharSourceBootstrapper.construct(cfg, r));
    }
View Full Code Here

    protected XMLStreamReader2 constructSR(String systemId, InputStream in,
                                        boolean forEventReader)
        throws XMLStreamException
    {
        ReaderConfig cfg = getNonSharedConfig(null, systemId, null, forEventReader, false);
        return StreamReaderImpl.construct(ByteSourceBootstrapper.construct(cfg, in));
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.aalto.in.ReaderConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.