KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xml > internal > serializer > EncodingInfo


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 JavaDoc
26 {
27
28     /**
29      * The ISO encoding name.
30      */

31     final String JavaDoc name;
32
33     /**
34      * The name used by the Java convertor.
35      */

36     final String JavaDoc javaName;
37
38     /**
39      * The last printable character.
40      */

41     final int lastPrintable;
42
43     /**
44      * Create an EncodingInfo object based on the name, java name, and the
45      * max character size.
46      *
47      * @param name non-null reference to the ISO name.
48      * @param javaName non-null reference to the Java encoding name.
49      * @param lastPrintable The maximum character that can be written.
50      */

51     public EncodingInfo(String JavaDoc name, String JavaDoc javaName, int lastPrintable)
52     {
53
54         this.name = name;
55         this.javaName = javaName;
56         this.lastPrintable = lastPrintable;
57     }
58 }
59
Popular Tags