1
2
3
4
5
6 package nl.javel.gisbeans.io;
7
8 /***
9 * This interface defines what we expect from an input or output object to
10 * handle both Little as Big Endian.
11 *
12 * @author <a href="mailto:peter.jacobs@javel.nl">Peter Jacobs </a><a
13 * href="mailto:paul.jacobs@javel.nl">Paul Jacobs </a>
14 * @version 1.0
15 * @since JDK 1.0
16 *
17 */
18 public interface EndianInterface extends java.io.Serializable
19 {
20 /*** BIG ENDIAN */
21 byte BIG_ENDIAN = 0;
22
23 /*** LITTLE ENDIAN */
24 byte LITTLE_ENDIAN = 1;
25
26 /***
27 * sets the Encode
28 *
29 * @param encode the encode which is either BIG_ENDIAN or LITTLE_ENDIAN
30 */
31 void setEncode(int encode);
32
33 /***
34 * returns the encode
35 *
36 * @return int
37 */
38 int getEncode();
39 }