superwaba.ext.xplat.xml
Class XmlReadableSocket

java.lang.Object
  |
  +--waba.io.Stream
        |
        +--superwaba.ext.xplat.io.http.HttpStream
              |
              +--superwaba.ext.xplat.xml.XmlReadableSocket

public class XmlReadableSocket
extends HttpStream
implements XmlReadable

An XmlReadableSocket HAS-A Socket stream that takes care of the HTTP Headers and starts reading at the message-body.


Inner classes inherited from class superwaba.ext.xplat.io.http.HttpStream
HttpStream.Options
 
Fields inherited from class superwaba.ext.xplat.io.http.HttpStream
buffer, connection, contentLength, contentType, cookies, debugHeader, IMAGE_BMP_TYPE, IMAGE_GIF_TYPE, IMAGE_JPEG_TYPE, IMAGE_PNG_TYPE, location, MULTIPART_TYPE, ofsEnd, ofsStart, readPos, responseCode, sendSleep, socket, TEXT_HTML_TYPE, UNKNOWN_TYPE, version
 
Constructor Summary
XmlReadableSocket(URI uri)
          Constructor
XmlReadableSocket(URI uri, HttpStream.Options options)
          Constructor
 
Method Summary
 URI getBaseURI()
          Get the base URI attached to this XmlReadable
 void readXml(XmlReader rdr)
          Read this XmlReadable through an XmlReader parser.
 
Methods inherited from class superwaba.ext.xplat.io.http.HttpStream
close, getStatus, isOk, isOpen, makeImage, readBytes, readLine, refill, setTimeout, skipToNextMimePart, writeBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReadableSocket

public XmlReadableSocket(URI uri,
                         HttpStream.Options options)
Constructor
Parameters:
uri - to connect to
options - The options for this socket

XmlReadableSocket

public XmlReadableSocket(URI uri)
Constructor
Parameters:
uri - to connect to
Method Detail

readXml

public void readXml(XmlReader rdr)
             throws SyntaxException
Description copied from interface: XmlReadable
Read this XmlReadable through an XmlReader parser.
Specified by:
readXml in interface XmlReadable
Tags copied from interface: XmlReadable
Parameters:
rdr - the XmlReader that will report the SAX events
Throws:
SyntaxException -  

getBaseURI

public URI getBaseURI()
Description copied from interface: XmlReadable
Get the base URI attached to this XmlReadable
Specified by:
getBaseURI in interface XmlReadable
Tags copied from interface: XmlReadable
Returns:
the base URI attached to this XmlReadable