01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package j2me.nio;
10:
11: import j2me.lang.UnsupportedOperationException;
12:
13: /**
14: * Clean-room implementation of ByteOrder to support
15: * <code>javolution.util.Struct</code> when <code>java.nio</code> is
16: * not available.
17: */
18: public final class ByteOrder {
19: public static final ByteOrder BIG_ENDIAN = new ByteOrder();
20:
21: public static final ByteOrder LITTLE_ENDIAN = new ByteOrder();
22:
23: public static ByteOrder nativeOrder() {
24: throw new UnsupportedOperationException();
25: }
26:
27: }
|