Package org.exist.protocolhandler.embedded

Examples of org.exist.protocolhandler.embedded.EmbeddedInputStream


            // Setup validator
            final Validator validator = new Validator(factory.getBrokerPool());
           
            // Get inputstream
            // TODO DWES reconsider
            final InputStream is = new EmbeddedInputStream( new XmldbURL(docUri) );
           
            // Perform validation
            final ValidationReport report = validator.validate(is);
           
            // Return validation result
View Full Code Here


        InputStream is = null;
        if(resourcePath.startsWith("xmldb:")){
            final XmldbURL xmldbURL = new XmldbURL(resourcePath);
            if(xmldbURL.isEmbedded()){
                is = new EmbeddedInputStream( xmldbURL );

            } else {
                is = new XmlrpcInputStream( xmldbURL );
            }
View Full Code Here

        if (path != null &&
                (path.startsWith(LOCALURI) || path.startsWith(SHORTLOCALURI))) {

            final XmldbURL url = new XmldbURL(path);
            final EmbeddedInputStream eis = new EmbeddedInputStream(bPool, url);
            inputsource.setByteStream(eis);
            inputsource.setSystemId(path);

        } else {
            final InputStream is = new URL(path).openStream();
View Full Code Here

        try {
            if (path != null &&
                    (path.startsWith(LOCALURI) || path.startsWith(SHORTLOCALURI))) {

                final XmldbURL url = new XmldbURL(path);
                final EmbeddedInputStream eis = new EmbeddedInputStream(bPool, url);
                streamsource.setInputStream(eis);
                streamsource.setSystemId(path);

            } else {
                final InputStream is = new URL(path).openStream();
View Full Code Here

       
        InputStream is = null;
        if(resourcePath.startsWith("xmldb:")){
            final XmldbURL xmldbURL = new XmldbURL(resourcePath);
            if(xmldbURL.isEmbedded()){
                is = new EmbeddedInputStream( xmldbURL );
               
            } else {
                is = new XmlrpcInputStream( xmldbURL );
            }
View Full Code Here

       
        InputStream inputstream=null;
        final XmldbURL xmldbURL = new XmldbURL(url);
       
        if(xmldbURL.isEmbedded()){
            inputstream = new EmbeddedInputStream( xmldbURL );
        } else {
            inputstream = new XmlrpcInputStream( xmldbURL );
        }
       
        return inputstream;
View Full Code Here

TOP

Related Classes of org.exist.protocolhandler.embedded.EmbeddedInputStream

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.