1. /*
  2. * Copyright 1999-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: Method.java,v 1.2 2004/02/17 04:18:19 minchau Exp $
  18. */
  19. package com.sun.org.apache.xml.internal.serializer;
  20. /**
  21. * This class defines the constants which are the names of the four default
  22. * output methods.
  23. * <p>
  24. * Four default output methods are defined: XML, HTML, XHTML and TEXT.
  25. * Serializers may support additional output methods. The names of
  26. * these output methods should be encoded as <tt>namespace:local</tt>.
  27. *
  28. * @version Alpha
  29. * @author <a href="mailto:arkin@exoffice.com">Assaf Arkin</a>
  30. */
  31. public final class Method
  32. {
  33. /**
  34. * The output method for XML documents: <tt>xml</tt>.
  35. */
  36. public static final String XML = "xml";
  37. /**
  38. * The output method for HTML documents: <tt>html</tt>.
  39. */
  40. public static final String HTML = "html";
  41. /**
  42. * The output method for XHTML documents: <tt>xhtml</tt>.
  43. */
  44. public static final String XHTML = "xhtml";
  45. /**
  46. * The output method for text documents: <tt>text</tt>.
  47. */
  48. public static final String TEXT = "text";
  49. /**
  50. * The "internal" method, just used when no method is
  51. * specified in the style sheet, and a serializer of this type wraps either an
  52. * XML or HTML type (depending on the first tag in the output being html or
  53. * not)
  54. */
  55. public static final String UNKNOWN = "";
  56. }