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: EncodingInfo.java,v 1.2 2004/02/17 04:18:18 minchau Exp $
  18. */
  19. package com.sun.org.apache.xml.internal.serializer;
  20. /**
  21. * Holds information about a given encoding, which is the Java name for the
  22. * encoding, the equivalent ISO name, and the integer value of the last pritable
  23. * character in the encoding.
  24. */
  25. public class EncodingInfo extends Object
  26. {
  27. /**
  28. * The ISO encoding name.
  29. */
  30. final String name;
  31. /**
  32. * The name used by the Java convertor.
  33. */
  34. final String javaName;
  35. /**
  36. * The last printable character.
  37. */
  38. final int lastPrintable;
  39. /**
  40. * Create an EncodingInfo object based on the name, java name, and the
  41. * max character size.
  42. *
  43. * @param name non-null reference to the ISO name.
  44. * @param javaName non-null reference to the Java encoding name.
  45. * @param lastPrintable The maximum character that can be written.
  46. */
  47. public EncodingInfo(String name, String javaName, int lastPrintable)
  48. {
  49. this.name = name;
  50. this.javaName = javaName;
  51. this.lastPrintable = lastPrintable;
  52. }
  53. }