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