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(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)
Initializes a new instance of the
ClassID class. |
ClassID(String classID,
boolean isZeroLength)
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(byte[] classID,
boolean isZeroLength)
Initializes a new instance of the ClassID class.
classID - The class ID as series of bytes.isZeroLength - if set to true [is zero length].
The recorded string length is zero but actual is four.com.aspose.ms.System.ArgumentNullException - classID is null.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, boolean isZeroLength)
Initializes a new instance of the ClassID class.
classID - The class ID in ASCII encoding.isZeroLength - if set to true [is zero length].public final byte[] getBytes()
Gets the bytes representing class ID.
public final String getClassName()
Gets the class name as ASCII encoding.
Value: The class name.public final int getLength()
Gets the class ID length in bytes.
public final void save(StreamContainer streamContainer)
Saves the class information to the specified stream container.
streamContainer - The stream container to save to.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.