public class HTTPURLConnSLR extends HTTPSeekableLineReader
HTTPSeekableLineReader.BadHttpStatusException| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.io.input.CountingInputStream |
cin |
protected int |
connTimeout |
protected HttpURLConnection |
httpUrlConn |
protected int |
readTimeout |
protected String |
url |
connectedUrl, CONTENT_LENGTH, cookie, errHeader, LAST_MODIFIED, noKeepAlive, saveErrHeaderblockSize, br, bufferFully, closed, is, UTF8| Constructor and Description |
|---|
HTTPURLConnSLR(String url,
int connTimeout,
int socketTimeout) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected InputStream |
doSeekLoad(long offset,
int maxLength) |
String |
getHeaderValue(String headerName) |
long |
getSize() |
String |
getUrl() |
getConnectedUrl, getCookie, getErrHeader, getSaveErrHeader, isNoKeepAlive, makeRangeHeader, setCookie, setErrHeader, setNoKeepAlive, setSaveErrHeaderclose, finalize, getInputStream, isClosed, readLine, seek, seekWithMaxRead, setBufferFully, skipLineprotected String url
protected int connTimeout
protected int readTimeout
protected HttpURLConnection httpUrlConn
protected org.apache.commons.io.input.CountingInputStream cin
public HTTPURLConnSLR(String url, int connTimeout, int socketTimeout)
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 InputStream doSeekLoad(long offset, int maxLength) throws IOException
doSeekLoad in class AbstractSeekableLineReaderIOExceptionprotected void doClose()
throws IOException
doClose in class AbstractSeekableLineReaderIOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.