KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xml > serializer > SerializerConstants


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: SerializerConstants.java,v 1.2 2004/02/17 04:18:19 minchau Exp $
18  */

19 package org.apache.xml.serializer;
20
21 /**
22  * @author minchau
23  *
24  * Constants used in serialization, such as the string "xmlns"
25  * @author Jacek Ambroziak
26  * @author Santiago Pericas-Geertsen
27  */

28 public interface SerializerConstants
29 {
30
31     /** To insert ]]> in a CDATA section by ending the last CDATA section with
32      * ]] and starting the next CDATA section with >
33      */

34     static final String JavaDoc CDATA_CONTINUE = "]]]]><![CDATA[>";
35     /**
36      * The constant "]]>"
37      */

38     static final String JavaDoc CDATA_DELIMITER_CLOSE = "]]>";
39     static final String JavaDoc CDATA_DELIMITER_OPEN = "<![CDATA[";
40
41     static final char[] CNTCDATA = CDATA_CONTINUE.toCharArray();
42     static final char[] BEGCDATA = CDATA_DELIMITER_OPEN.toCharArray();
43     static final char[] ENDCDATA = CDATA_DELIMITER_CLOSE.toCharArray();
44
45     static final String JavaDoc EMPTYSTRING = "";
46
47     static final String JavaDoc ENTITY_AMP = "&amp;";
48     static final String JavaDoc ENTITY_CRLF = "&#xA;";
49     static final String JavaDoc ENTITY_GT = "&gt;";
50     static final String JavaDoc ENTITY_LT = "&lt;";
51     static final String JavaDoc ENTITY_QUOT = "&quot;";
52
53     static final String JavaDoc XML_PREFIX = "xml";
54     static final String JavaDoc XMLNS_PREFIX = "xmlns";
55     static final String JavaDoc XMLNS_URI = "http://www.w3.org/2000/xmlns/";
56    
57     public static final String JavaDoc DEFAULT_SAX_SERIALIZER="org.apache.xml.serializer.ToXMLSAXHandler";
58 }
59
Popular Tags