cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject svn commit: r439255 - in /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax: XMLByteStreamCompiler.java XMLByteStreamInterpreter.java
Date Fri, 01 Sep 2006 10:00:01 GMT
Author: giacomo
Date: Fri Sep  1 03:00:00 2006
New Revision: 439255

URL: http://svn.apache.org/viewvc?rev=439255&view=rev
Log:
factor out common constants

Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamInterpreter.java

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java?rev=439255&r1=439254&r2=439255&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamCompiler.java
Fri Sep  1 03:00:00 2006
@@ -29,7 +29,7 @@
  *
  * @version $Id$
  */
-public final class XMLByteStreamCompiler implements XMLConsumer {
+public final class XMLByteStreamCompiler implements XMLConsumer, XMLByteStreamConstants {
 
     private HashMap map;
     private int mapCount;
@@ -66,25 +66,6 @@
         bufCountAverage = (bufCountAverage + bufCount) / 2;
         this.initOutput();
     }
-
-    private static final int START_DOCUMENT         = 0;
-    private static final int END_DOCUMENT           = 1;
-    private static final int START_PREFIX_MAPPING   = 2;
-    private static final int END_PREFIX_MAPPING     = 3;
-    private static final int START_ELEMENT          = 4;
-    private static final int END_ELEMENT            = 5;
-    private static final int CHARACTERS             = 6;
-    private static final int IGNORABLE_WHITESPACE   = 7;
-    private static final int PROCESSING_INSTRUCTION = 8;
-    private static final int COMMENT                = 9;
-    private static final int LOCATOR                = 10;
-    private static final int START_DTD              = 11;
-    private static final int END_DTD                = 12;
-    private static final int START_CDATA            = 13;
-    private static final int END_CDATA              = 14;
-    private static final int SKIPPED_ENTITY         = 15;
-    private static final int START_ENTITY           = 16;
-    private static final int END_ENTITY             = 17;
 
 
     public Object getSAXFragment() {

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamInterpreter.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamInterpreter.java?rev=439255&r1=439254&r2=439255&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamInterpreter.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/sax/XMLByteStreamInterpreter.java
Fri Sep  1 03:00:00 2006
@@ -33,26 +33,7 @@
  *
  * @version $Id$
  */
-public final class XMLByteStreamInterpreter implements XMLProducer {
-
-    private static final int START_DOCUMENT         = 0;
-    private static final int END_DOCUMENT           = 1;
-    private static final int START_PREFIX_MAPPING   = 2;
-    private static final int END_PREFIX_MAPPING     = 3;
-    private static final int START_ELEMENT          = 4;
-    private static final int END_ELEMENT            = 5;
-    private static final int CHARACTERS             = 6;
-    private static final int IGNORABLE_WHITESPACE   = 7;
-    private static final int PROCESSING_INSTRUCTION = 8;
-    private static final int COMMENT                = 9;
-    private static final int LOCATOR                = 10;
-    private static final int START_DTD              = 11;
-    private static final int END_DTD                = 12;
-    private static final int START_CDATA            = 13;
-    private static final int END_CDATA              = 14;
-    private static final int SKIPPED_ENTITY         = 15;
-    private static final int START_ENTITY           = 16;
-    private static final int END_ENTITY             = 17;
+public final class XMLByteStreamInterpreter implements XMLProducer, XMLByteStreamConstants
{
 
     private ArrayList list = new ArrayList();
     private byte[] input;



Mime
View raw message