FileDocCategorySizeDatePackage
Arch.javaAPI DocJMF 2.1.1e1088Mon May 12 12:21:26 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 solaris is 4.

	return 4;
    
public static intgetArch()

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

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

	return false;