public class ApacheHttp31SLR extends HTTPSeekableLineReader
HTTPSeekableLineReader.BadHttpStatusException| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.io.input.CountingInputStream |
cin |
connectedUrl, CONTENT_LENGTH, cookie, errHeader, LAST_MODIFIED, noKeepAlive, saveErrHeaderblockSize, br, bufferFully, closed, is, UTF8| Constructor and Description |
|---|
ApacheHttp31SLR(org.apache.commons.httpclient.HttpClient http,
java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
doClose() |
protected java.io.InputStream |
doSeekLoad(long offset,
int maxLength) |
protected java.lang.String |
getHeader(java.lang.String header) |
java.lang.String |
getHeaderValue(java.lang.String headerName) |
org.apache.commons.httpclient.methods.GetMethod |
getHttpMethod() |
long |
getSize() |
java.lang.String |
getUrl() |
getConnectedUrl, getCookie, getErrHeader, getSaveErrHeader, isNoKeepAlive, makeRangeHeader, setCookie, setErrHeader, setNoKeepAlive, setSaveErrHeaderclose, finalize, getInputStream, isClosed, readLine, seek, seekWithMaxRead, setBufferFully, skipLinepublic ApacheHttp31SLR(org.apache.commons.httpclient.HttpClient http,
java.lang.String url)
protected java.lang.String getHeader(java.lang.String header)
throws java.net.URISyntaxException,
org.apache.commons.httpclient.HttpException,
java.io.IOException
java.net.URISyntaxExceptionorg.apache.commons.httpclient.HttpExceptionjava.io.IOExceptionpublic java.lang.String getUrl()
getUrl in class HTTPSeekableLineReaderprotected java.io.InputStream doSeekLoad(long offset,
int maxLength)
throws java.io.IOException
doSeekLoad in class AbstractSeekableLineReaderjava.io.IOExceptionpublic org.apache.commons.httpclient.methods.GetMethod getHttpMethod()
public void doClose()
throws java.io.IOException
doClose in class AbstractSeekableLineReaderjava.io.IOExceptionpublic long getSize()
throws java.io.IOException
getSize in interface SeekableLineReadergetSize in class HTTPSeekableLineReaderjava.io.IOExceptionpublic java.lang.String getHeaderValue(java.lang.String headerName)
getHeaderValue in class HTTPSeekableLineReaderCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.