KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > charcode > ASCIICharacterSet


1 package net.sf.saxon.charcode;
2
3 /**
4 * This class defines properties of the US-ASCII character set
5 */

6
7 public class ASCIICharacterSet implements CharacterSet {
8
9     public static ASCIICharacterSet theInstance = new ASCIICharacterSet();
10
11     private ASCIICharacterSet() {}
12
13     public static ASCIICharacterSet getInstance() {
14         return theInstance;
15     }
16
17     public final boolean inCharset(int c) {
18         return c <= 0x7f;
19     }
20
21 }
22
23 //
24
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
25
// you may not use this file except in compliance with the License. You may obtain a copy of the
26
// License at http://www.mozilla.org/MPL/
27
//
28
// Software distributed under the License is distributed on an "AS IS" basis,
29
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
30
// See the License for the specific language governing rights and limitations under the License.
31
//
32
// The Original Code is: all this file.
33
//
34
// The Initial Developer of the Original Code is
35
// Aleksei Makarov [makarov@iitam.omsk.net.ru]
36
//
37
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
38
//
39
// Contributor(s): none.
40
//
41
Popular Tags