Package org.exist.protocolhandler.xmldb

Examples of org.exist.protocolhandler.xmldb.XmldbURL


            // 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


            resourcePath="xmldb:exist://"+resourcePath;
        }

        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

        final InputSource inputsource = new InputSource();

        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 {
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 {
View Full Code Here

            return null;
        }
       
        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

     */
    public InputStream getInputStream() throws IOException {
        LOG.debug(url) ;
       
        InputStream inputstream=null;
        final XmldbURL xmldbURL = new XmldbURL(url);
       
        if(xmldbURL.isEmbedded()){
            inputstream = new EmbeddedInputStream( xmldbURL );
        } else {
            inputstream = new XmlrpcInputStream( xmldbURL );
        }
       
View Full Code Here

     */
    public OutputStream getOutputStream() throws IOException {
        LOG.debug(url) ;
       
        OutputStream outputstream=null;
        final XmldbURL xmldbURL = new XmldbURL(url);
       
        if(xmldbURL.isEmbedded()){
            outputstream = new EmbeddedOutputStream( xmldbURL );
        } else {
            outputstream = new XmlrpcOutputStream( xmldbURL );
        }
       
View Full Code Here

TOP

Related Classes of org.exist.protocolhandler.xmldb.XmldbURL

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.