public class ApacheHttp43SLR extends HTTPSeekableLineReader
HTTPSeekableLineReader.BadHttpStatusExceptionconnectedUrl, CONTENT_LENGTH, cookie, errHeader, LAST_MODIFIED, noKeepAlive, saveErrHeaderblockSize, br, bufferFully, closed, is, UTF8| Constructor and Description |
|---|
ApacheHttp43SLR(String url) |
ApacheHttp43SLR(String url,
int connectTimeout,
int readTimeout) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected InputStream |
doSeekLoad(long offset,
int maxLength) |
protected InputStream |
doSeekLoad(long offset,
int maxLength,
URL url) |
String |
getHeaderValue(String headerName) |
protected static int |
getPort(URL url) |
long |
getSize() |
String |
getUrl() |
void |
seekWithMaxRead(long offset,
boolean gzip,
int maxLength) |
getConnectedUrl, getCookie, getErrHeader, getSaveErrHeader, isNoKeepAlive, makeRangeHeader, setCookie, setErrHeader, setNoKeepAlive, setSaveErrHeaderclose, finalize, getInputStream, isClosed, readLine, seek, setBufferFully, skipLinepublic ApacheHttp43SLR(String url)
public ApacheHttp43SLR(String url, int connectTimeout, int readTimeout)
public String getUrl()
getUrl in class HTTPSeekableLineReaderpublic long getSize()
throws IOException
getSize in interface SeekableLineReadergetSize in class HTTPSeekableLineReaderIOExceptionpublic String getHeaderValue(String headerName)
getHeaderValue in class HTTPSeekableLineReaderprotected static int getPort(URL url)
protected InputStream doSeekLoad(long offset, int maxLength, URL url) throws IOException
IOExceptionpublic void seekWithMaxRead(long offset,
boolean gzip,
int maxLength)
throws IOException
seekWithMaxRead in interface SeekableLineReaderseekWithMaxRead in class AbstractSeekableLineReaderIOExceptionprotected void doClose()
throws IOException
doClose in class AbstractSeekableLineReaderIOExceptionprotected InputStream doSeekLoad(long offset, int maxLength) throws IOException
doSeekLoad in class AbstractSeekableLineReaderIOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.