Class TypedByteArray
java.lang.Object
de.xima.fc.common.io.TypedByteArray
- All Implemented Interfaces:
Serializable
Represents a byte array with a content type (MIME type).
- Since:
- 8.3.0
- Author:
- XIMA Media GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTypedByteArray(byte[] data, String contentType) Creates a new typed byte array with the specified data and content type. -
Method Summary
-
Constructor Details
-
TypedByteArray
Creates a new typed byte array with the specified data and content type.- Parameters:
data- The byte array with the data. Defaults to an empty byte array if null.contentType- The content type. Defaults to "application/octet-stream" if blank.
-
-
Method Details
-
contentType
-
data
public byte[] data()Gets the byte array with the data- Returns:
- The byte array with the data.
-
equals
-
hashCode
-