public final class AsfFormat extends FormatBase implements IXmp
Represents Asf format files.
GroupDocs.Metadata.Formats.FormatBase
Constructor and Description |
---|
AsfFormat(InputStream input) |
AsfFormat(String filePath)
Initializes a new instance of the
AsfFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes or resets metadata.
|
AsfMetadata |
getAsfInfo()
Gets the ASF native metadata.
|
DublinCoreMetadata |
getDublinCore()
Gets the Dublin Core metadata.
|
int |
getType()
Gets the document type.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in specific format.
|
XmpEditableCollection |
getXmpValues()
Gets the
XmpEditableCollection . |
boolean |
hasXmp()
Gets a value indicating whether if file contains XMP metadata.
|
void |
removeXmpData()
Removes the XMP data.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
|
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public AsfFormat(String filePath)
Initializes a new instance of the AsfFormat
class.
filePath
- The absolute path to the file.public AsfFormat(InputStream input)
public int getType()
Gets the document type.
getType
in class FormatBase
public final AsfMetadata getAsfInfo()
Gets the ASF native metadata.
public final boolean hasXmp()
Gets a value indicating whether if 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 void cleanMetadata()
Removes or resets metadata.
cleanMetadata
in class FormatBase
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 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.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 present; otherwise null.
Copyright © 2019. All rights reserved.