net.i2p.util
public class PartialEepGet extends EepGet
EepGet.CLIStatusListener, EepGet.StatusListener
Modifier and Type | Field and Description |
---|---|
(package private) long |
_fetchSize |
_aborted, _actualURL, _alreadyTransferred, _bytesRemaining, _bytesTransferred, _contentType, _context, _currentAttempt, _encodingChunked, _etag, _fetchInactivityTimeout, _headersRead, _keepFetching, _lastModified, _listeners, _log, _notModified, _numRetries, _out, _outputFile, _outputStream, _proxy, _proxyIn, _proxyOut, _redirectLocation, _redirects, _shouldProxy, _transferFailed, _url, CONNECT_TIMEOUT, INACTIVITY_TIMEOUT, MAX_COMPLETE_FAILS, USER_AGENT
Constructor and Description |
---|
PartialEepGet(I2PAppContext ctx,
String proxyHost,
int proxyPort,
OutputStream outputStream,
String url,
long size) |
Modifier and Type | Method and Description |
---|---|
protected String |
getRequest() |
static void |
main(String[] args)
PartialEepGet [-p 127.0.0.1:4444] [-l #bytes] url
|
addStatusListener, doFetch, fetch, fetch, fetch, getContentType, getETag, getLastModified, getNotModified, readChunkLength, readHeaders, sendRequest, stopFetching, suggestName
public PartialEepGet(I2PAppContext ctx, String proxyHost, int proxyPort, OutputStream outputStream, String url, long size)
size
- fetch exactly this many bytespublic static void main(String[] args)
protected String getRequest() throws IOException
getRequest
in class EepGet
IOException