Packages

 

com.aspose.psd.fileformats.psd.layers.layerresources

Class ClassID



  • public class ClassID
    extends Object

    The PSD Class ID object.

    • Constructor Summary

      Constructors 
      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.
    • Constructor Detail

      • ClassID

        public ClassID(byte[] classID)

        Initializes a new instance of the ClassID class.

        Parameters:
        classID - The class ID as series of bytes.
      • ClassID

        public ClassID(byte[] classID,
                       boolean isZeroLength)

        Initializes a new instance of the ClassID class.

        Parameters:
        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.
        Throws:
        com.aspose.ms.System.ArgumentNullException - classID is null.
      • ClassID

        public ClassID(int classID)

        Initializes a new instance of the ClassID class.

        Parameters:
        classID - The class ID.
      • ClassID

        public ClassID(long classID)

        Initializes a new instance of the ClassID class.

        Parameters:
        classID - The class ID.
      • ClassID

        public ClassID(String classID,
                       boolean isZeroLength)

        Initializes a new instance of the ClassID class.

        Parameters:
        classID - The class ID in ASCII encoding.
        isZeroLength - if set to true [is zero length].
      • ClassID

        public ClassID(String classID)

        Initializes a new instance of the ClassID class.

        Parameters:
        classID - The class ID in ASCII encoding.
    • Method Detail

      • getBytes

        public final byte[] getBytes()

        Gets the bytes representing class ID.

      • getClassName

        public final String getClassName()

        Gets the class name as ASCII encoding.

        Value: The class name.
      • getLength

        public final int getLength()

        Gets the class ID length in bytes.

      • save

        public final void save(StreamContainer streamContainer)

        Saves the class information to the specified stream container.

        Parameters:
        streamContainer - The stream container to save to.