01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id: ASCII85Constants.java 426584 2006-07-28 16:01:47Z jeremias $ */
19:
20: package org.apache.xmlgraphics.util.io;
21:
22: /**
23: * This interface defines constants used by the ASCII85 filters.
24: *
25: * @version $Id: ASCII85Constants.java 426584 2006-07-28 16:01:47Z jeremias $
26: */
27: public interface ASCII85Constants {
28:
29: /** Special character "z" stands for four NULL bytes (short-cut for !!!!!) */
30: public static final int ZERO = 0x7A; //"z"
31: /** ZERO as a byte array */
32: public static final byte[] ZERO_ARRAY = { (byte) ZERO };
33: /** The start index for ASCII85 characters (!) */
34: public static final int START = 0x21; //"!"
35: /** The end index for ASCII85 characters (u) */
36: public static final int END = 0x75; //"u"
37: /** The EOL indicator (LF) */
38: public static final int EOL = 0x0A; //"\n"
39: /** The EOD (end of data) indicator */
40: public static final byte[] EOD = { 0x7E, 0x3E }; //"~>"
41:
42: /** Array of powers of 85 (4, 3, 2, 1, 0) */
43: public static final long POW85[] = new long[] { 85 * 85 * 85 * 85,
44: 85 * 85 * 85, 85 * 85, 85, 1 };
45:
46: /*
47: public static final long BASE85_4 = 85;
48: public static final long BASE85_3 = BASE85_4 * BASE85_4;
49: public static final long BASE85_2 = BASE85_3 * BASE85_4;
50: public static final long BASE85_1 = BASE85_2 * BASE85_4;
51: */
52:
53: }
|