ClassID is not just 16 bytes stored in the wrong
order. Instead, it is a double word (4 bytes) followed by two
words (2 bytes each) followed by 8 bytes.The ClassID (or CLSID) is a UUID - see RFC 4122
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | bytes
The bytes making out the class ID in correct order, i.e. big-endian. |
| public static final int | LENGTH
The number of bytes occupied by this object in the byte stream. |
| Access | Constructor and Description |
|---|---|
| public | ClassID(final byte[]
The byte array to read from. src, final int The offset of the first byte to read. offset)Creates a ClassID and reads its value from a byte array. |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClassID | |
| public boolean | Returns: true if the objects are equal, else false.the object to compare this o)ClassID withOverrides java. Checks whether this |
| public boolean | Returns: true if the objects are equal, else false.the object to compare this o)ClassID withChecks whether this |
| public byte[] | Returns: the bytes making out the class ID.Gets the bytes making out the class ID. They are returned in correct order, i.e. big-endian. |
| public Map | |
| public int | |
| public int | |
| public byte[] | Returns: A byte array containing the class ID.The byte array to read from src, final int The offset within the offset)src byte arrayReads the class ID's value from a byte array by turning little-endian into big-endian. |
| public void | setBytes(final byte[]
The bytes making out the class ID in big-endian format. They
are copied without their order being changed. bytes)Sets the bytes making out the class ID. |
| public String | Returns: String representation of the Class ID represented by this object.Overrides java. Returns a human-readable representation of the Class ID in standard
format |
| public UUID | |
| public String | Returns: UUID String representation of the Class ID represented by this object.Returns a human-readable representation of the Class ID in UUID
format |
| public void | write(final byte[]
The byte array to write to. dst, final int The offset within the offset)dst byte array.Writes the class ID to a byte array in the little-endian format. |
| public void |
| bytes | back to summary |
|---|---|
| private final byte[] bytes The bytes making out the class ID in correct order, i.e. big-endian. | |
| LENGTH | back to summary |
|---|---|
| public static final int LENGTH The number of bytes occupied by this object in the byte stream. | |
| ClassID | back to summary |
|---|---|
| public ClassID(final byte[] src, final int offset) Creates a ClassID and reads its value from a byte array.
| |
| ClassID | back to summary |
|---|---|
| public ClassID() Creates a ClassID and initializes its value with 0x00 bytes. | |
| ClassID | back to summary |
|---|---|
| public ClassID(ClassID other) Clones the given ClassID
| |
| ClassID | back to summary |
|---|---|
| public ClassID(String externalForm) Creates a ClassID from a human-readable representation of the Class ID in standard
format
| |
| ClassID | back to summary |
|---|---|
| public ClassID(LittleEndianInput lei) Reads the ClassID from the input
| |
| copy | back to summary |
|---|---|
| public ClassID copy() Implements org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Checks whether this | |
| equalsInverted | back to summary |
|---|---|
| public boolean equalsInverted(ClassID o) Checks whether this
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Gets the bytes making out the class ID. They are returned in correct order, i.e. big-endian.
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| length | back to summary |
|---|---|
public int length()
| |
| read | back to summary |
|---|---|
| public byte[] read(final byte[] src, final int offset) Reads the class ID's value from a byte array by turning little-endian into big-endian.
| |
| setBytes | back to summary |
|---|---|
| public void setBytes(final byte[] bytes) Sets the bytes making out the class ID.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a human-readable representation of the Class ID in standard
format | |
| toUUID | back to summary |
|---|---|
| public UUID toUUID() Converts the ClassID to an UUID
| |
| toUUIDString | back to summary |
|---|---|
| public String toUUIDString() Returns a human-readable representation of the Class ID in UUID
format
| |
| write | back to summary |
|---|---|
| public void write(final byte[] dst, final int offset) throws ArrayStoreException Writes the class ID to a byte array in the little-endian format.
| |
| write | back to summary |
|---|---|
| public void write(LittleEndianOutput leo) Write the class ID to a LittleEndianOutput (stream)
| |