public class ClassID extends Object
The PSD Class ID object.
Constructor and Description |
---|
ClassID(byte[] classID)
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)
Initializes a new instance of the
ClassID class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Gets the bytes representing class ID.
|
String |
getClassName()
Gets the class name as ASCII encoding.
|
int |
getLength()
Gets the class ID length in bytes.
|
void |
save(StreamContainer streamContainer)
Saves the class information to the specified stream container.
|
public ClassID(byte[] classID)
Initializes a new instance of the ClassID
class.
classID
- The class ID as series of bytes.public ClassID(int classID)
Initializes a new instance of the ClassID
class.
classID
- The class ID.public ClassID(long classID)
Initializes a new instance of the ClassID
class.
classID
- The class ID.public ClassID(String classID)
Initializes a new instance of the ClassID
class.
classID
- The class ID in ASCII encoding.public byte[] getBytes()
Gets the bytes representing class ID.
public String getClassName()
Gets the class name as ASCII encoding.
Value: The class name.public int getLength()
Gets the class ID length in bytes.
public void save(StreamContainer streamContainer)
Saves the class information to the specified stream container.
streamContainer
- The stream container to save to.