com.webhiker.dreambox.api
Class Utils

java.lang.Object
  extended by com.webhiker.dreambox.api.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static org.w3c.dom.Element getElement(org.w3c.dom.Document doc, java.lang.String tagName, int index)
          Return an Element given a Document, tag name, and index
static org.w3c.dom.Element getElement(org.w3c.dom.Element element, java.lang.String tagName, int index)
          Return an Element given a Element, tag name, and index
static int getSize(org.w3c.dom.Document doc, java.lang.String tagName)
           
static java.lang.StringBuffer getStringBuffer(java.io.InputStream entity)
           
static java.lang.String getValue(org.w3c.dom.Element e, java.lang.String tagName)
           
static void validateResponse(java.net.URLConnection uconn)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

validateResponse

public static void validateResponse(java.net.URLConnection uconn)
                             throws java.io.IOException
Throws:
java.io.IOException

getStringBuffer

public static java.lang.StringBuffer getStringBuffer(java.io.InputStream entity)
                                              throws java.io.IOException
Throws:
java.io.IOException

getElement

public static org.w3c.dom.Element getElement(org.w3c.dom.Document doc,
                                             java.lang.String tagName,
                                             int index)
Return an Element given a Document, tag name, and index


getElement

public static org.w3c.dom.Element getElement(org.w3c.dom.Element element,
                                             java.lang.String tagName,
                                             int index)
Return an Element given a Element, tag name, and index


getValue

public static java.lang.String getValue(org.w3c.dom.Element e,
                                        java.lang.String tagName)

getSize

public static int getSize(org.w3c.dom.Document doc,
                          java.lang.String tagName)