public class MatroskaFormat extends FormatBase
Represents the Matroska Media Container format.
Constructor and Description |
---|
MatroskaFormat(InputStream input)
Initializes a new instance of the
MatroskaFormat class. |
MatroskaFormat(String filePath)
Initializes a new instance of the
MatroskaFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes or resets metadata.
|
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 document type.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public MatroskaFormat(String filePath)
Initializes a new instance of the MatroskaFormat
class.
filePath
- The absolute path to the file.public MatroskaFormat(InputStream input)
Initializes a new instance of the MatroskaFormat
class.
input
- The stream to load the file from.public int getType()
Gets the document type.
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 or resets metadata.
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.