| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ModifiableSource interface instead
public interface WriteableSource
A Source that can be written to. It provides two methods that
 allow for SAX-based and byte-based output.
 
 Callers will use the most appropriate method for their use and
 it's up to the implementation to handle both sources. For example,
 an XML-based implementation can use a parser to convert bytes written
 to the OutputStream to SAX events, and a byte-based
 implementation (such as file), can use a serializer to convert
 SAX events to a byte stream.
| Method Summary | |
|---|---|
 boolean | 
canCancel(ContentHandler handler)
Deprecated. Can the data sent to a ContentHandler returned by
 getContentHandler() be cancelled ? | 
 boolean | 
canCancel(OutputStream stream)
Deprecated. Can the data sent to an OutputStream returned by
 getOutputStream() be cancelled ? | 
 void | 
cancel(ContentHandler handler)
Deprecated. Cancel the data sent to a ContentHandler returned by
 getContentHandler(). | 
 void | 
cancel(OutputStream stream)
Deprecated. Cancel the data sent to an OutputStream returned by
 getOutputStream(). | 
 boolean | 
exists()
Deprecated. Does this source actually exist ?  | 
 ContentHandler | 
getContentHandler()
Deprecated. Get a ContentHandler where an XML document can
 be written using SAX events. | 
 OutputStream | 
getOutputStream()
Deprecated. Get an InputStream where raw bytes can be written to. | 
| Methods inherited from interface org.apache.cocoon.environment.ModifiableSource | 
|---|
refresh | 
| Methods inherited from interface org.apache.cocoon.environment.Source | 
|---|
getContentLength, getInputSource, getInputStream, getLastModified, getSystemId | 
| Methods inherited from interface org.apache.avalon.excalibur.pool.Recyclable | 
|---|
recycle | 
| Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable | 
|---|
toSAX | 
| Method Detail | 
|---|
boolean exists()
ContentHandler getContentHandler()
                                 throws SAXException,
                                        ProcessingException
ContentHandler where an XML document can
 be written using SAX events.
 
 Care should be taken that the returned handler can actually
 be a XMLConsumer supporting also
 lexical events such as comments.
SAXException
ProcessingException
OutputStream getOutputStream()
                             throws IOException,
                                    ProcessingException
InputStream where raw bytes can be written to.
 The signification of these bytes is implementation-dependent and
 is not restricted to a serialized XML document.
IOException
ProcessingExceptionboolean canCancel(ContentHandler handler)
ContentHandler returned by
 getContentHandler() be cancelled ?
boolean canCancel(OutputStream stream)
OutputStream returned by
 getOutputStream() be cancelled ?
void cancel(ContentHandler handler)
            throws Exception
ContentHandler returned by
 getContentHandler().
 After cancel, the handler should no more be used.
Exception
void cancel(OutputStream stream)
            throws Exception
OutputStream returned by
 getOutputStream().
 After cancel, the stream should no more be used.
Exception
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||