Package org.mp4parser.muxer.tracks.ttml
Class TtmlHelpers
- java.lang.Object
-
- org.mp4parser.muxer.tracks.ttml.TtmlHelpers
-
public class TtmlHelpers extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static NamespaceContextNAMESPACE_CONTEXTstatic StringSMPTE_TT_NAMESPACEstatic StringTTML_NAMESPACE
-
Constructor Summary
Constructors Constructor Description TtmlHelpers()
-
Method Summary
Modifier and Type Method Description static voiddeepCopyDocument(Document ttml, File target)static String[]getAllNamespaces(Document doc)static longgetEndTime(Node p)static longgetStartTime(Node p)static voidmain(String[] args)static voidpretty(Document document, OutputStream outputStream, int indent)static longtoTime(String expr)static StringtoTimeExpression(long ms)static StringtoTimeExpression(long ms, int frames)
-
-
-
Field Detail
-
SMPTE_TT_NAMESPACE
public static final String SMPTE_TT_NAMESPACE
- See Also:
- Constant Field Values
-
TTML_NAMESPACE
public static final String TTML_NAMESPACE
- See Also:
- Constant Field Values
-
NAMESPACE_CONTEXT
public static final NamespaceContext NAMESPACE_CONTEXT
-
-
Method Detail
-
main
public static void main(String[] args) throws URISyntaxException, ParserConfigurationException, IOException, SAXException, XPathExpressionException, TransformerException
-
toTimeExpression
public static String toTimeExpression(long ms)
-
toTimeExpression
public static String toTimeExpression(long ms, int frames)
-
toTime
public static long toTime(String expr)
-
pretty
public static void pretty(Document document, OutputStream outputStream, int indent) throws IOException
- Throws:
IOException
-
getStartTime
public static long getStartTime(Node p)
-
getEndTime
public static long getEndTime(Node p)
-
deepCopyDocument
public static void deepCopyDocument(Document ttml, File target) throws IOException
- Throws:
IOException
-
-