vgritsenko 01/09/07 21:46:56
Modified: src/org/apache/cocoon/components/source Tag:
cocoon_20_branch SitemapSource.java URLSource.java
Log:
exception handling in XMLizable and sources
Revision Changes Path
No revision
No revision
1.1.2.20 +3 -2
xml-cocoon2/src/org/apache/cocoon/components/source/SitemapSource.java
Index: SitemapSource.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/source/SitemapSource.java,v
retrieving revision 1.1.2.19
retrieving revision 1.1.2.20
diff -u -r1.1.2.19 -r1.1.2.20
--- SitemapSource.java 2001/09/08 04:39:03 1.1.2.19
+++ SitemapSource.java 2001/09/08 04:46:56 1.1.2.20
@@ -48,7 +48,7 @@
* Description of a source which is defined by a pipeline.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Revision: 1.1.2.19 $ $Date: 2001/09/08 04:39:03 $
+ * @version CVS $Revision: 1.1.2.20 $ $Date: 2001/09/08 04:46:56 $
*/
public final class SitemapSource
@@ -279,7 +279,8 @@
* Stream content to the content handler
*/
public void toSAX(ContentHandler contentHandler)
- throws SAXException, ProcessingException {
+ throws SAXException, ProcessingException
+ {
if (this.needsRefresh) {
this.refresh();
}
1.1.2.13 +7 -2
xml-cocoon2/src/org/apache/cocoon/components/source/URLSource.java
Index: URLSource.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/source/URLSource.java,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -r1.1.2.12 -r1.1.2.13
--- URLSource.java 2001/09/08 04:39:03 1.1.2.12
+++ URLSource.java 2001/09/08 04:46:56 1.1.2.13
@@ -33,7 +33,7 @@
* Description of a source which is described by an URL.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Revision: 1.1.2.12 $ $Date: 2001/09/08 04:39:03 $
+ * @version CVS $Revision: 1.1.2.13 $ $Date: 2001/09/08 04:46:56 $
*/
public final class URLSource implements ModifiableSource {
@@ -308,7 +308,12 @@
}
/**
- * Stream content to a content handler or to an XMLConsumer
+ * Stream content to a content handler or to an XMLConsumer.
+ *
+ * @throws ResourceNotFoundException if file not found or
+ * HTTP location does not exist.
+ * @throws IOException if I/O error occured.
+ * @throws SAXException if failed to parse source document.
*/
public void toSAX(ContentHandler handler)
throws SAXException, ProcessingException
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]