public class TimedTextMarkupLanguageParser
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
TimedTextMarkupLanguageParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
parse(java.nio.file.Path ttmlFilePath)
Parse the TTML file into internal representation.
|
boolean |
parseXmlFlash(java.nio.file.Path ttmlFilePath)
Parse the XML Subtitle File for Flash Player into internal representation.
|
void |
toSrt(java.nio.file.Path srtFile)
Convert internal representation into SubRip Text Format and save to file.
|
public boolean parse(java.nio.file.Path ttmlFilePath)
ttmlFilePath - the TTML file to parsepublic boolean parseXmlFlash(java.nio.file.Path ttmlFilePath)
ttmlFilePath - the TTML file to parsepublic void toSrt(java.nio.file.Path srtFile)
public void close()
close in interface java.lang.AutoCloseable