public final class FlvFormat extends FormatBase implements IXmp
Represents the FLV video format.
Constructor and Description |
---|
FlvFormat(InputStream input)
Initializes a new instance of the
FlvFormat class. |
FlvFormat(String fileName)
Initializes a new instance of the
FlvFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes all metadata presented in the file.
|
DublinCoreMetadata |
getDublinCore()
Gets Dublin Core metadata.
|
FlvHeader |
getHeader()
Gets the metadata contained in the FLV header.
|
int |
getType()
Gets the document type.
|
XmpPacketWrapper |
getXmpData()
Returns the XMP packet.
|
XmpProperties |
getXmpProperties()
Returns all XMP properties presented in the loaded video.
|
XmpEditableCollection |
getXmpValues()
Gets an instance of
XmpEditableCollection which provides access to all XMP properties in edit mode. |
boolean |
hasXmp()
Gets a value indicating whether the file contains XMP metadata.
|
void |
removeXmpData()
Removes the existing XMP metadata package.
|
boolean |
setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
|
close, dispose, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public FlvFormat(String fileName)
Initializes a new instance of the FlvFormat
class.
fileName
- The absolute path to the file.public FlvFormat(InputStream input)
Initializes a new instance of the FlvFormat
class.
input
- The stream to load the file from.public int getType()
Gets the document type.
getType
in class FormatBase
public final FlvHeader getHeader()
Gets the metadata contained in the FLV header.
public final boolean hasXmp()
Gets a value indicating whether the file contains XMP metadata.
public final XmpEditableCollection getXmpValues()
Gets an instance of XmpEditableCollection
which provides access to all XMP properties in edit mode.
getXmpValues
in interface IXmp
XmpEditableCollection
.public final XmpPacketWrapper getXmpData()
Returns the XMP packet.
getXmpData
in interface IXmp
XmpPacketWrapper
class if XMP metadata is present, otherwise, null.public final XmpProperties getXmpProperties()
Returns all XMP properties presented in the loaded video.
getXmpProperties
in interface IXmp
XmpProperties
class if XMP data is present; otherwise, null.public final boolean setXmpData(XmpPacketWrapper package_)
Updates the XMP packet.
setXmpData
in interface IXmp
package
- The XMP packet wrapper.ArgumentNullException
- The XMP wrapper could not be null.public final void removeXmpData()
Removes the existing XMP metadata package.
removeXmpData
in interface IXmp
public final DublinCoreMetadata getDublinCore()
Gets Dublin Core metadata.
getDublinCore
in interface IDublinCore
DublinCoreMetadata
class if Dublin Core metadata is present; otherwise null.
public void cleanMetadata()
Removes all metadata presented in the file.
cleanMetadata
in class FormatBase
Copyright © 2019. All rights reserved.