Package com.volantis.xml.utilities.sax.stream

Examples of com.volantis.xml.utilities.sax.stream.AddRootElementInputStream


        throws IOException {
        // Open a URL to the system id specified and construct a
        // root element inputstream.
        // TODO: Fix the URL to a valid URL before opening
        InputStream urlStream = new URL(systemId).openStream();
        this.setByteStream(new AddRootElementInputStream(urlStream));
        this.setSystemId(systemId);
    }
View Full Code Here


    public DocumentFragmentInputSource(InputSource inputSource)
        throws IOException {
        //Construct this using the inputsource provided
        if (inputSource.getByteStream() != null) {
            this.setByteStream(
                new AddRootElementInputStream(inputSource.getByteStream()));
        } else if (inputSource.getSystemId() != null) {
            InputStream urlStream =
                new URL(inputSource.getSystemId()).openStream();
            this.setByteStream(new AddRootElementInputStream(urlStream));
            this.setSystemId(inputSource.getSystemId());
        } else {
            this.setCharacterStream(
                new AddRootElementReader(inputSource.getCharacterStream()));
        }
View Full Code Here

        // Open a URL to the system id specified and construct a
        // root element inputstream.
        // TODO: Fix the URL to a valid URL before opening
        InputStream urlStream = new URL(systemId).openStream();
        this.setByteStream(
            new AddRootElementInputStream(
                urlStream, namespacePrefix, namespaces));
        this.setSystemId(systemId);
    }
View Full Code Here

                                       String namespacePrefix,
                                       Map namespaces)
        throws IOException {
        //Construct this using the inputsource provided
        if (inputSource.getByteStream() != null) {
            this.setByteStream(new AddRootElementInputStream(
                inputSource.getByteStream(), namespacePrefix, namespaces));
        } else if (inputSource.getSystemId() != null) {
            InputStream urlStream =
                new URL(inputSource.getSystemId()).openStream();
            this.setByteStream(
                new AddRootElementInputStream(
                    urlStream, namespacePrefix, namespaces));
            this.setSystemId(inputSource.getSystemId());
        } else {
            this.setCharacterStream(
                new AddRootElementReader(inputSource.getCharacterStream(),
View Full Code Here

TOP

Related Classes of com.volantis.xml.utilities.sax.stream.AddRootElementInputStream

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.