public class XmlReadableSocket extends HttpStream implements XmlReadable
HttpStream.Options
badResponseCode, buffer, connection, contentEncoding, contentLength, contentRead, contentType, cookies, debugHeader, DELETE, GET, headers, IMAGE_TYPE, location, lr, MULTIPART_TYPE, ofsEnd, ofsStart, PATCH, POST, PUT, readPos, readTokensDelimiter, readTokensDoTrim, responseCode, sendSleep, socket, TEXT_HTML_TYPE, tr, UNKNOWN_TYPE, version
skipBuffer
Constructor and Description |
---|
XmlReadableSocket(URI uri)
Constructor
|
XmlReadableSocket(URI uri,
HttpStream.Options options)
Constructor
|
Modifier and Type | Method and Description |
---|---|
URI |
getBaseURI()
Get the base URI attached to this XmlReadable
|
void |
readXml(XmlReader rdr)
Read this XmlReadable through an XmlReader parser.
|
void |
setCaseInsensitive(boolean caseInsensitive) |
close, getStatus, init, isOk, makeImage, readBytes, readLine, readTokens, refill, shouldSendData, skipToNextMimePart, writeBytes, writeResponseRequest
asInputStream, asOutputStream, asStream, asStream, skipBytes, wrapInputStream, wrapInputStreamToStream, write, writeBytes, writeBytes, writeBytes
public XmlReadableSocket(URI uri, HttpStream.Options options) throws IllegalArgumentIOException, IOException
uri
- to connect tooptions
- The options for this socketIOException
IllegalArgumentIOException
public XmlReadableSocket(URI uri) throws IllegalArgumentIOException, IOException
uri
- to connect toIOException
IllegalArgumentIOException
public void readXml(XmlReader rdr) throws SyntaxException, IOException
XmlReadable
readXml
in interface XmlReadable
rdr
- the XmlReader that will report the SAX eventsSyntaxException
IOException
public URI getBaseURI()
XmlReadable
getBaseURI
in interface XmlReadable
public void setCaseInsensitive(boolean caseInsensitive)
setCaseInsensitive
in interface XmlReadable