ClassID
Inheritance: java.lang.Object
public class ClassID
The PSD Class ID object.
Constructors
| Constructor | Description |
|---|---|
| ClassID(byte[] classID) | Initializes a new instance of the ClassID class. |
| ClassID(byte[] classID, boolean isZeroLength) | Initializes a new instance of the ClassID class. |
| ClassID(int classID) | Initializes a new instance of the ClassID class. |
| ClassID(long classID) | Initializes a new instance of the ClassID class. |
| ClassID(String classID, boolean isZeroLength) | Initializes a new instance of the ClassID class. |
| ClassID(String classID) | Initializes a new instance of the ClassID class. |
Methods
| Method | Description |
|---|---|
| equals(Object arg0) | |
| getBytes() | Gets the bytes representing class ID. |
| getClass() | |
| getClassName() | Gets the class name as ASCII encoding. |
| getEmpty_internalized() | Gets the new instance of ClassID type with ‘\0’ value. |
| getLength() | Gets the class ID length in bytes. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| save(StreamContainer streamContainer) | Saves the class information to the specified stream container. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
ClassID(byte[] classID)
public ClassID(byte[] classID)
Initializes a new instance of the ClassID class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| classID | byte[] | The class ID as series of bytes. |
ClassID(byte[] classID, boolean isZeroLength)
public ClassID(byte[] classID, boolean isZeroLength)
Initializes a new instance of the ClassID class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| classID | byte[] | The class ID as series of bytes. |
| isZeroLength | boolean | if set to true [is zero length]. The recorded string length is zero but actual is four. |
ClassID(int classID)
public ClassID(int classID)
Initializes a new instance of the ClassID class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| classID | int | The class ID. |
ClassID(long classID)
public ClassID(long classID)
Initializes a new instance of the ClassID class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| classID | long | The class ID. |
ClassID(String classID, boolean isZeroLength)
public ClassID(String classID, boolean isZeroLength)
Initializes a new instance of the ClassID class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| classID | java.lang.String | The class ID in ASCII encoding. |
| isZeroLength | boolean | if set to true [is zero length]. |
ClassID(String classID)
public ClassID(String classID)
Initializes a new instance of the ClassID class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| classID | java.lang.String | The class ID in ASCII encoding. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getBytes()
public final byte[] getBytes()
Gets the bytes representing class ID.
Returns: byte[]
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getClassName()
public final String getClassName()
Gets the class name as ASCII encoding.
Value: The class name.
Returns: java.lang.String
getEmpty_internalized()
public static ClassID getEmpty_internalized()
Gets the new instance of ClassID type with ‘\0’ value.
Returns: ClassID - The new instance of ClassID type with ‘\0’ value.
getLength()
public final int getLength()
Gets the class ID length in bytes.
Returns: int
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
save(StreamContainer streamContainer)
public final void save(StreamContainer streamContainer)
Saves the class information to the specified stream container.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| streamContainer | StreamContainer | The stream container to save to. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |