public class VideoInfoParser extends XMLParser
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION
Constructor and Description |
---|
VideoInfoParser(org.w3c.dom.Document dom)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAspectRatio()
Used to get the aspect ratio or null if it can't be found
|
java.lang.Long |
getAudioBitRate()
Used to get the audio bit rate (Kbs)
|
java.lang.String |
getAudioFormatProfile()
Used to get the audio format profile
|
java.lang.Integer |
getDuration()
Used to get the video duration in milliseconds or null if it can't be found
|
java.lang.Float |
getFrameRate()
Used to get the frames per second or null if it can't be found
|
java.lang.Integer |
getHeight()
Used to get the height in pixels or null if it can be found
|
boolean |
getInterlaced()
Used to find out if the scan type is interlaced
|
java.lang.Integer |
getWidth()
Used to get the width in pixels or null if it can be found
|
createDocBuilder, createFactory, deleteNode, domToStr, domToStrNoXMLProlog, encodeAttributeValue, firstChild, fixXMl, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML
public VideoInfoParser(org.w3c.dom.Document dom)
dom
- The DOM XML model output from the command mediainfopublic java.lang.Integer getHeight() throws XMLParserException
XMLParserException
- Thrown if their is a parser errorpublic java.lang.Integer getWidth() throws XMLParserException
XMLParserException
- Thrown if their is a parser errorpublic java.lang.Float getFrameRate() throws XMLParserException
XMLParserException
- Thrown if their is a parser errorpublic java.lang.Integer getDuration() throws XMLParserException
XMLParserException
- Thrown if their is a parser errorpublic java.lang.String getAspectRatio() throws XMLParserException
XMLParserException
- Thrown if their is a parser errorpublic boolean getInterlaced() throws XMLParserException
XMLParserException
- Thrown if their is a parser errorpublic java.lang.String getAudioFormatProfile() throws XMLParserException
XMLParserException
- Thrown if their is a parser errorpublic java.lang.Long getAudioBitRate() throws XMLParserException
XMLParserException