public abstract class RiffFormat extends FormatBase implements IXmp
Provides the abstract base class for all formats based on the RIFF container.
filePath, stream
Constructor and Description |
---|
RiffFormat(InputStream input)
Initializes a new instance of the
RiffFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes metadata.
|
DublinCoreMetadata |
getDublinCore()
Gets the Dublin Core metadata.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in the specific format.
|
XmpEditableCollection |
getXmpValues()
Gets the
XmpEditableCollection . |
boolean |
hasXmp()
Gets a value indicating whether the file contains XMP metadata.
|
void |
removeXmpData()
Removes the XMP data.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
|
close, dispose, getMetadata, getMIMEType, getType, readByMetadataKey, save, save, save
public RiffFormat(InputStream input)
Initializes a new instance of the RiffFormat
class.
input
- File stream.public final boolean hasXmp()
Gets a value indicating whether the file contains XMP metadata.
public final XmpEditableCollection getXmpValues()
Gets the XmpEditableCollection
. Provides access to all XMP properties in edit mode.
getXmpValues
in interface IXmp
public final XmpPacketWrapper getXmpData()
Returns the XMP packet.
getXmpData
in interface IXmp
XmpPacketWrapper
if XMP data is presented; otherwise null.public final XmpProperties getXmpProperties()
Returns all XMP properties presented in the specific format.
getXmpProperties
in interface IXmp
XmpProperties
if XMP data is presented; otherwise null.public final boolean setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
setXmpData
in interface IXmp
package
- XMP packet wrapper.ArgumentNullException
- Package could not be null.public final void removeXmpData()
Removes the XMP data.
removeXmpData
in interface IXmp
public final DublinCoreMetadata getDublinCore()
Gets the Dublin Core metadata.
getDublinCore
in interface IDublinCore
DublinCoreMetadata
if the Dublin Core metadata is presented; otherwise null.
public void cleanMetadata()
Removes metadata.
cleanMetadata
in class FormatBase
Copyright © 2018. All rights reserved.