public final class FlvFormat extends FormatBase implements IXmp
Represents a FLV video file.
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 writable metadata properties associated with the file.
|
DublinCoreMetadata |
getDublinCore()
Retrieves the Dublin Core metadata.
|
FlvHeader |
getHeader()
Gets the metadata contained in the FLV header.
|
int |
getType()
Gets the type of the loaded file.
|
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, readByMetadataKey, save, save, save
public FlvFormat(String fileName)
Initializes a new instance of the FlvFormat
class.
fileName
- A string that contains the full name of the file from which to create a FlvFormat
instance.public FlvFormat(InputStream input)
Initializes a new instance of the FlvFormat
class.
input
- A stream that contains the data for this FlvFormat
.public int getType()
Gets the type of the loaded file.
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 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 writable metadata properties associated with the file.
cleanMetadata
in class FormatBase
Copyright © 2019. All rights reserved.