public abstract class MetaFile extends MetaParameter
CALIBRATION_LEVEL, HIERARCHY_LEVEL, SPECTRUM_LEVEL
Modifier | Constructor and Description |
---|---|
|
MetaFile()
Default constructor.
|
protected |
MetaFile(attribute attr)
Constructor from an attribute.
|
protected |
MetaFile(attribute attr,
java.lang.Object meta_value)
Constructor from attribute and value
|
protected |
MetaFile(java.lang.String category_name,
java.lang.String category_value,
java.lang.Object meta_value)
Constructor from a category name and value
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getDefaultFilenameExtension()
Get the default filename extension for this type of file.
|
abstract void |
readValue(java.io.InputStream is,
java.lang.String mimeType)
Read the value of the meta-parameter from an input stream.
|
abstract void |
writeValue(java.io.OutputStream os)
Write the value of the meta-parameter to an output stream.
|
allows_multi_insert, getAnnotation, getAttributeId, getAttributeName, getBlob_lazy_loading, getBlob_size_in_MB, getBlob_size, getCategoryName, getCategoryValue, getDefaultStorageField, getDefaultUnitId, getDescription, getEavId, getEAVValue, getFieldPos, getIsBooleanValue, getLevel, getUnitId, getUnitName, getValue, hasEqualValue, newInstance, newInstance, newInstance, setAnnotation, setAttributeId, setAttributeName, setBlob_lazy_loading, setBlob_size, setCategoryName, setCategoryValue, setDefaultStorageField, setDefaultUnitId, setDescription, setEavId, setEmptyValue, setIsBooleanValue, setLevel, setUnitId, setUnitName, setUnits, setValue, setValue, valueAsString
public MetaFile()
protected MetaFile(attribute attr)
attr
- the attributeprotected MetaFile(java.lang.String category_name, java.lang.String category_value, java.lang.Object meta_value) throws MetaParameterFormatException
category_name
- the category namecategory_value
- the category valuemeta_value
- the metaparameter valueMetaParameterFormatException
- meta_value cannot be assigned to a file meta-parameterprotected MetaFile(attribute attr, java.lang.Object meta_value) throws MetaParameterFormatException
attr
- the attributemeta_value
- the metaparameter valueMetaParameterFormatException
- meta_value cannot be assigned to a file meta-parameterpublic abstract java.lang.String getDefaultFilenameExtension()
public abstract void readValue(java.io.InputStream is, java.lang.String mimeType) throws java.io.IOException
is
- the input streammimeType
- the MIME type of the input datajava.io.IOException
- read errorpublic abstract void writeValue(java.io.OutputStream os) throws java.io.IOException
os
- the output streamjava.io.IOException
- write error