public abstract class RiffFormat extends FormatBase implements IXmp
Provides an abstract base class for all formats based on the RIFF container.
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()
Retrieves the Dublin Core metadata.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in a specific format.
|
XmpEditableCollection |
getXmpValues()
Gets a collection containing the XMP metadata properties.
|
boolean |
hasXmp()
Gets a value indicating whether the file contains XMP metadata.
|
void |
removeXmpData()
Removes the XMP metadata.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
|
close, dispose, dispose, getMetadata, getMIMEType, getType, readByMetadataKey, save, save, save
public RiffFormat(InputStream input)
Initializes a new instance of the RiffFormat
class.
input
- A stream that contains the data for this RiffFormat
.public final boolean hasXmp()
Gets a value indicating whether the file contains XMP metadata.
public final XmpEditableCollection getXmpValues()
Gets a collection containing the XMP metadata properties. 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 the file contains an XMP metadata package; otherwise, null.public final XmpProperties getXmpProperties()
Returns all XMP properties presented in a specific format.
getXmpProperties
in interface IXmp
XmpProperties
if the file contains an XMP metadata package; otherwise, null.public final boolean setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
setXmpData
in interface IXmp
package
- An XMP packet wrapper.true
if the XMP package is successfully updated; otherwise, false.public final void removeXmpData()
Removes the XMP metadata.
removeXmpData
in interface IXmp
public final DublinCoreMetadata getDublinCore()
Retrieves the Dublin Core metadata.
getDublinCore
in interface IDublinCore
DublinCoreMetadata
if the appropriate package is found; otherwise, null.public void cleanMetadata()
Removes metadata.
cleanMetadata
in class FormatBase
Copyright © 2019. All rights reserved.