public final class OpaqueAttribute extends Object implements Attribute
OpaqueAttribute
objects can be read from an
image file, copied and written back to another image file, but their values
are inaccessible.Attribute.AttributeCreator, Attribute.AttributeCreatorProvider
Constructor and Description |
---|
OpaqueAttribute(String name) |
Modifier and Type | Method and Description |
---|---|
OpaqueAttribute |
clone()
Creates a deep-copy of this attribute.
|
boolean |
equals(Object obj) |
int |
getSize()
Returns the size in bytes of the data held by this opaque attribute.
|
int |
hashCode() |
void |
readValueFrom(XdrInput input,
int size,
int version)
Set the value of this attribute by reading from the given input buffer.
|
String |
toString() |
String |
typeName()
Get this attribute's type name as it appears in an OpenEXR header.
|
void |
writeValueTo(XdrOutput output,
int ver)
Writes the value of this attribute into the given output buffer.
|
public OpaqueAttribute(String name)
public String typeName()
Attribute
public int getSize()
public void readValueFrom(XdrInput input, int size, int version) throws EXRIOException
Attribute
size
parameter contains the size in bytes specified in the
header for the attribute's value; version
is the 4-byte integer
following the magic number at the beginning of an OpenEXR file with the
file version and feature flags.readValueFrom
in interface Attribute
input
- data input from which the value will be read.size
- amount of bytes to be read according to the header.version
- file version and flags as provided in the OpenEXR file.EXRIOException
- if there is an error in the file format or
an I/O error.public void writeValueTo(XdrOutput output, int ver) throws EXRIOException
Attribute
version
parameter is the 4-byte integer following the
magic number at the beginning of an OpenEXR file with the
file version and feature flags.writeValueTo
in interface Attribute
output
- data output into which the value will be written.ver
- file version and flags as provided in the OpenEXR file.EXRIOException
- if there is an I/O error.