JavaTM 2 Platform
Std. Ed. v1.3.1

com.apple.mrj
Class MRJOSType

java.lang.Object
  |
  +--com.apple.mrj.MRJOSType

public class MRJOSType
extends Object

A wrapper around 4 byte character constants


Field Summary
static MRJOSType kTypeGIFF
          Commonly used OSType
static MRJOSType kTypeHFS
          Commonly used OSType
static MRJOSType kTypeJPEG
          Commonly used OSType
static MRJOSType kTypeJser
          Commonly used OSType
static MRJOSType kTypeMoov
          Commonly used OSType
static MRJOSType kTypePICT
          Commonly used OSType
static MRJOSType kTypeStyl
          Commonly used OSType
static MRJOSType kTypeTEXT
          Commonly used OSType
static MRJOSType kTypeURL
          Commonly used OSType
static MRJOSType kTypeUstl
          Commonly used OSType
static MRJOSType kTypeUtxt
          Commonly used OSType
 
Constructor Summary
MRJOSType(byte[] fromBytes)
          Construct from a 4 byte array
MRJOSType(int fromInt)
          Construct from an integer
MRJOSType(String fromString)
          Construct from a String.
 
Method Summary
 boolean equals(int type)
          Equals to an integer?
 boolean equals(MRJOSType type)
          Equals an MRJOSType?
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 int toInt()
          Get the integer value
 String toString()
          Return as a String
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

kTypeTEXT

public static final MRJOSType kTypeTEXT
Commonly used OSType

kTypeUtxt

public static final MRJOSType kTypeUtxt
Commonly used OSType

kTypeStyl

public static final MRJOSType kTypeStyl
Commonly used OSType

kTypeUstl

public static final MRJOSType kTypeUstl
Commonly used OSType

kTypePICT

public static final MRJOSType kTypePICT
Commonly used OSType

kTypeHFS

public static final MRJOSType kTypeHFS
Commonly used OSType

kTypeURL

public static final MRJOSType kTypeURL
Commonly used OSType

kTypeGIFF

public static final MRJOSType kTypeGIFF
Commonly used OSType

kTypeJPEG

public static final MRJOSType kTypeJPEG
Commonly used OSType

kTypeMoov

public static final MRJOSType kTypeMoov
Commonly used OSType

kTypeJser

public static final MRJOSType kTypeJser
Commonly used OSType
Constructor Detail

MRJOSType

public MRJOSType(String fromString)
Construct from a String.

MRJOSType

public MRJOSType(int fromInt)
Construct from an integer

MRJOSType

public MRJOSType(byte[] fromBytes)
Construct from a 4 byte array
Method Detail

equals

public final boolean equals(MRJOSType type)
Equals an MRJOSType?

equals

public final boolean equals(int type)
Equals to an integer?

equals

public final boolean equals(Object o)
Description copied from class: Object
Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation:

The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any reference values x and y, this method returns true if and only if x and y refer to the same object (x==y has the value true).

Overrides:
equals in class Object
Following copied from class: java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Boolean.hashCode(), Hashtable

hashCode

public int hashCode()
Description copied from class: Object
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)

Overrides:
hashCode in class Object
Following copied from class: java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object), Hashtable

toInt

public int toInt()
Get the integer value

toString

public String toString()
Return as a String
Overrides:
toString in class Object
Following copied from class: java.lang.Object
Returns:
a string representation of the object.

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.