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,
String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
doClose() |
protected InputStream |
doSeekLoad(long offset,
int maxLength) |
protected String |
getHeader(String header) |
String |
getHeaderValue(String headerName) |
org.apache.commons.httpclient.methods.GetMethod |
getHttpMethod() |
long |
getSize() |
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,
String url)
protected String getHeader(String header) throws URISyntaxException, org.apache.commons.httpclient.HttpException, IOException
URISyntaxExceptionorg.apache.commons.httpclient.HttpExceptionIOExceptionpublic String getUrl()
getUrl in class HTTPSeekableLineReaderprotected InputStream doSeekLoad(long offset, int maxLength) throws IOException
doSeekLoad in class AbstractSeekableLineReaderIOExceptionpublic org.apache.commons.httpclient.methods.GetMethod getHttpMethod()
public void doClose()
throws IOException
doClose in class AbstractSeekableLineReaderIOExceptionpublic long getSize()
throws IOException
getSize in interface SeekableLineReadergetSize in class HTTPSeekableLineReaderIOExceptionpublic String getHeaderValue(String headerName)
getHeaderValue in class HTTPSeekableLineReaderCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.