|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.xml.XMLParser
org.stanwood.media.info.VideoInfoParser
public class VideoInfoParser
This class is used to parse the XML output of the mediainfo command
Field Summary |
---|
Fields inherited from class org.stanwood.media.xml.XMLParser |
---|
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION |
Constructor Summary | |
---|---|
VideoInfoParser(org.w3c.dom.Document dom)
Constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class org.stanwood.media.xml.XMLParser |
---|
createDocBuilder, createFactory, deleteNode, domToStr, encodeAttributeValue, firstChild, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VideoInfoParser(org.w3c.dom.Document dom)
dom
- The DOM XML model output from the command mediainfoMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |