1 16 17 package org.apache.cocoon.environment; 18 19 import java.io.IOException ; 20 import java.io.OutputStream ; 21 22 import org.apache.cocoon.ProcessingException; 23 24 import org.xml.sax.ContentHandler ; 25 import org.xml.sax.SAXException ; 26 27 42 public interface WriteableSource extends ModifiableSource { 43 44 49 boolean exists(); 50 51 61 ContentHandler getContentHandler() throws SAXException , ProcessingException; 62 63 70 OutputStream getOutputStream() throws IOException , ProcessingException; 71 72 78 boolean canCancel(ContentHandler handler); 79 80 86 boolean canCancel(OutputStream stream); 87 88 94 void cancel(ContentHandler handler) throws Exception ; 95 96 102 void cancel(OutputStream stream) throws Exception ; 103 } 104 | Popular Tags |