Class HTTPURLConnSLR
java.lang.Object
org.archive.util.binsearch.AbstractSeekableLineReader
org.archive.util.binsearch.impl.HTTPSeekableLineReader
org.archive.util.binsearch.impl.http.HTTPURLConnSLR
- All Implemented Interfaces:
SeekableLineReader
-
Nested Class Summary
Nested classes/interfaces inherited from class HTTPSeekableLineReader
HTTPSeekableLineReader.BadHttpStatusException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.commons.io.input.CountingInputStreamprotected intprotected HttpURLConnectionprotected intprotected StringFields inherited from class HTTPSeekableLineReader
connectedUrl, CONTENT_LENGTH, cookie, errHeader, LAST_MODIFIED, noKeepAlive, saveErrHeaderFields inherited from class AbstractSeekableLineReader
blockSize, br, bufferFully, closed, is, UTF8 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoClose()protected InputStreamdoSeekLoad(long offset, int maxLength) getHeaderValue(String headerName) longgetSize()getUrl()Methods inherited from class HTTPSeekableLineReader
getConnectedUrl, getCookie, getErrHeader, getSaveErrHeader, isNoKeepAlive, makeRangeHeader, setCookie, setErrHeader, setNoKeepAlive, setSaveErrHeaderMethods inherited from class AbstractSeekableLineReader
close, finalize, getInputStream, isClosed, readLine, seek, seekWithMaxRead, setBufferFully, skipLine
-
Field Details
-
url
-
connTimeout
protected int connTimeout -
readTimeout
protected int readTimeout -
httpUrlConn
-
cin
protected org.apache.commons.io.input.CountingInputStream cin
-
-
Constructor Details
-
HTTPURLConnSLR
-
-
Method Details
-
getUrl
- Specified by:
getUrlin classHTTPSeekableLineReader
-
getSize
- Specified by:
getSizein interfaceSeekableLineReader- Specified by:
getSizein classHTTPSeekableLineReader- Throws:
IOException
-
getHeaderValue
- Specified by:
getHeaderValuein classHTTPSeekableLineReader
-
doSeekLoad
- Specified by:
doSeekLoadin classAbstractSeekableLineReader- Throws:
IOException
-
doClose
- Specified by:
doClosein classAbstractSeekableLineReader- Throws:
IOException
-