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 com.sun.org.apache.xml.internal.serializer;
  20. /**
  21. * @author minchau
  22. *
  23. * Constants used in serialization, such as the string "xmlns"
  24. * @author Jacek Ambroziak
  25. * @author Santiago Pericas-Geertsen
  26. */
  27. public interface SerializerConstants
  28. {
  29. /** To insert ]]> in a CDATA section by ending the last CDATA section with
  30. * ]] and starting the next CDATA section with >
  31. */
  32. static final String CDATA_CONTINUE = "]]]]><![CDATA[>";
  33. /**
  34. * The constant "]]>"
  35. */
  36. static final String CDATA_DELIMITER_CLOSE = "]]>";
  37. static final String CDATA_DELIMITER_OPEN = "<![CDATA[";
  38. static final char[] CNTCDATA = CDATA_CONTINUE.toCharArray();
  39. static final char[] BEGCDATA = CDATA_DELIMITER_OPEN.toCharArray();
  40. static final char[] ENDCDATA = CDATA_DELIMITER_CLOSE.toCharArray();
  41. static final String EMPTYSTRING = "";
  42. static final String ENTITY_AMP = "&";
  43. static final String ENTITY_CRLF = " ";
  44. static final String ENTITY_GT = ">";
  45. static final String ENTITY_LT = "<";
  46. static final String ENTITY_QUOT = """;
  47. static final String XML_PREFIX = "xml";
  48. static final String XMLNS_PREFIX = "xmlns";
  49. static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/";
  50. public static final String DEFAULT_SAX_SERIALIZER="com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler";
  51. }