public class MatroskaFormat extends FormatBase
Represents a video encoded with the Matroska Media Container.
Constructor and Description |
---|
MatroskaFormat(InputStream input)
Initializes a new instance of the
MatroskaFormat class. |
MatroskaFormat(String fileName)
Initializes a new instance of the
MatroskaFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes writable metadata properties associated with the file.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
int |
getContentType()
Gets the Matroska content type.
|
MatroskaEbmlHeaderMetadata |
getEbmlHeader()
Gets the EBML header metadata.
|
MatroskaSegmentInfoMetadata[] |
getSegments()
Gets the segment information metadata.
|
MatroskaSubtitleTrackMetadata[] |
getSubtitleTracks()
Gets the subtitle metadata entries.
|
MatroskaTagMetadata[] |
getTags()
Gets the tag metadata entries.
|
MatroskaTrackMetadata[] |
getTracks()
Gets the track metadata entries.
|
int |
getType()
Gets the type of the loaded file.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public MatroskaFormat(String fileName)
Initializes a new instance of the MatroskaFormat
class.
fileName
- A string that contains the full name of the file from which to create a MatroskaFormat
instance.public MatroskaFormat(InputStream input)
Initializes a new instance of the MatroskaFormat
class.
input
- A stream that contains the data for this MatroskaFormat
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final int getContentType()
Gets the Matroska content type.
public final MatroskaEbmlHeaderMetadata getEbmlHeader()
Gets the EBML header metadata.
public final MatroskaSegmentInfoMetadata[] getSegments()
Gets the segment information metadata.
public final MatroskaTrackMetadata[] getTracks()
Gets the track metadata entries.
public final MatroskaTagMetadata[] getTags()
Gets the tag metadata entries.
public final MatroskaSubtitleTrackMetadata[] getSubtitleTracks()
Gets the subtitle metadata entries.
public void cleanMetadata()
Removes writable metadata properties associated with the file. Metadata cleaning is not supported for this format.
cleanMetadata
in class FormatBase
protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
dispose
in class FormatBase
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.Copyright © 2019. All rights reserved.