Package org.apache.marmotta.platform.core.api.content

Examples of org.apache.marmotta.platform.core.api.content.ContentWriter.deleteContent()


        // iterate over all possible writers; if the pattern matches, try to store the content and return
        for(Pattern p : writerMap.keySet()) {
            if(p.matcher(resource.toString()).matches()) {
                ContentWriter writer = writerMap.get(p);
                try {
                    writer.deleteContent(resource,"");
                    return true;
                } catch(IOException ex) {
                    log.error("could not write content, writer threw an IO Exception",ex);
                    throw new WritingNotSupportedException(ex.getMessage(),ex);
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.