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