1 |
/* ByteOrder.java -- |
/* ByteOrder.java -- |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
39 |
package java.nio; |
package java.nio; |
40 |
|
|
41 |
/** |
/** |
42 |
* @author Michael Koch |
* @author Michael Koch (konqueror@gmx.de) |
43 |
* @since 1.4 |
* @since 1.4 |
44 |
*/ |
*/ |
45 |
public final class ByteOrder |
public final class ByteOrder |
46 |
{ |
{ |
47 |
|
/** |
48 |
|
* Constant indicating big endian byte order. |
49 |
|
*/ |
50 |
public static final ByteOrder BIG_ENDIAN = new ByteOrder(); |
public static final ByteOrder BIG_ENDIAN = new ByteOrder(); |
51 |
public static final ByteOrder LITTLE_ENDIAN = new ByteOrder(); |
|
52 |
|
/** |
53 |
|
* Constant indicating little endian byte order. |
54 |
|
*/ |
55 |
|
public static final ByteOrder LITTLE_ENDIAN = new ByteOrder(); |
56 |
|
|
57 |
/** |
/** |
58 |
* Returns the native byte order of the platform currently running. |
* Returns the native byte order of the platform currently running. |
59 |
|
* |
60 |
|
* @return the native byte order |
61 |
*/ |
*/ |
62 |
public static ByteOrder nativeOrder() |
public static ByteOrder nativeOrder() |
63 |
{ |
{ |
67 |
|
|
68 |
/** |
/** |
69 |
* Returns a string representation of the byte order. |
* Returns a string representation of the byte order. |
70 |
|
* |
71 |
|
* @return the string |
72 |
*/ |
*/ |
73 |
public String toString() |
public String toString() |
74 |
{ |
{ |