cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r279388 - in /cocoon: blocks/portal/trunk/java/org/apache/cocoon/portal/coplet/adapter/impl/CachingURICopletAdapter.java trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
Date Wed, 07 Sep 2005 17:56:37 GMT
Author: cziegeler
Date: Wed Sep  7 10:56:19 2005
New Revision: 279388

URL: http://svn.apache.org/viewcvs?rev=279388&view=rev
Log:
Support lexical handler

Modified:
    cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/coplet/adapter/impl/CachingURICopletAdapter.java
    cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java

Modified: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/coplet/adapter/impl/CachingURICopletAdapter.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/coplet/adapter/impl/CachingURICopletAdapter.java?rev=279388&r1=279387&r2=279388&view=diff
==============================================================================
--- cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/coplet/adapter/impl/CachingURICopletAdapter.java
(original)
+++ cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/coplet/adapter/impl/CachingURICopletAdapter.java
Wed Sep  7 10:56:19 2005
@@ -29,6 +29,7 @@
 import org.apache.excalibur.source.SourceValidity;
 import org.xml.sax.ContentHandler;
 import org.xml.sax.SAXException;
+import org.xml.sax.ext.LexicalHandler;
 
 /**
  * This adapter extends the {@link org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter}
@@ -152,6 +153,9 @@
         if ( data != null ) {
             XMLByteStreamInterpreter bi = new XMLByteStreamInterpreter();
             bi.setContentHandler(contentHandler);
+            if ( contentHandler instanceof LexicalHandler ) {
+                bi.setLexicalHandler((LexicalHandler)contentHandler);
+            }
             bi.deserialize(data);
         }
     }

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java?rev=279388&r1=279387&r2=279388&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java Wed
Sep  7 10:56:19 2005
@@ -29,7 +29,7 @@
  * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  * @author <a href="mailto:tcurdt@apache.org">Torsten Curdt</a>
- * @version CVS $Id: XMLByteStreamCompiler.java,v 1.7 2004/03/05 13:02:50 bdelacretaz Exp
$
+ * @version CVS $Id$
  */
 
 public final class XMLByteStreamCompiler implements XMLSerializer, Recyclable {
@@ -236,7 +236,7 @@
         }
     }
 
-    public final void writeEvent( final int event) throws SAXException {
+    public final void writeEvent( final int event) {
         this.write(event);
     }
 
@@ -263,7 +263,7 @@
         }
     }
 
-    public final void writeChars( final char[] ch, final int start, final int length) throws
SAXException {
+    public final void writeChars( final char[] ch, final int start, final int length) {
         int utflen = 0;
         int c;
 



Mime
View raw message