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