FileDocCategorySizeDatePackage
Arch.javaAPI DocJMF 2.1.1e1082Mon May 12 12:21:30 BST 2003com.sun.media.util

Arch

public class Arch extends Object
A class that contains platform specific information.

Fields Summary
public static final int
SPARC
public static final int
UNIX
public static final int
WIN32
public static final int
SOLARIS
public static final int
LINUX
public static final int
X86
Constructors Summary
Methods Summary
public static intgetAlignment()
Returns the byte alignment for integers. For example on win32, an int can be aligned to any byte in memory, so the return value would be 1. Return value for linux is 1.

	return 1;
    
public static intgetArch()

	return LINUX | UNIX | X86;
    
public static booleanisBigEndian()
Returns true if the byte ordering is big endian

    
                  
        
	return false;
    
public static booleanisLittleEndian()
Returns true if the byte ordering is little endian.

	return true;