public class PartialEepGet extends EepGet
EepGet.AUTH_MODE, EepGet.AuthState, EepGet.CLIStatusListener, EepGet.Gunzipper, EepGet.StatusListener
Modifier and Type | Field and Description |
---|---|
(package private) long |
_fetchSize |
_aborted, _actualURL, _alreadyTransferred, _authState, _bytesRemaining, _bytesTransferred, _contentType, _context, _currentAttempt, _decompressException, _encodingChunked, _etag, _etagOrig, _extraHeaders, _fetchHeaderTimeout, _fetchInactivityTimeout, _headersRead, _isGzippedResponse, _keepFetching, _lastModified, _lastModifiedOrig, _listeners, _log, _notModified, _numRetries, _out, _outputFile, _outputStream, _proxy, _proxyIn, _proxyOut, _redirectLocation, _redirects, _responseCode, _responseText, _shouldProxy, _shouldWriteErrorToOutput, _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)
Instantiate an EepGet that will fetch exactly size bytes when fetch() is called.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getRequest() |
static void |
main(String[] args)
PartialEepGet [-p 127.0.0.1:4444] [-l #bytes] url
|
addAuthorization, addHeader, addStatusListener, doFetch, fetch, fetch, fetch, getContentType, getETag, getLastModified, getNotModified, getStatusCode, getStatusText, parseAuthArgs, readChunkLength, readHeaders, sendRequest, setWriteErrorToOutput, stopFetching, suggestName
public PartialEepGet(I2PAppContext ctx, String proxyHost, int proxyPort, OutputStream outputStream, String url, long size)
proxyHost
- use null or "" for no proxyproxyPort
- use 0 for no proxysize
- fetch exactly this many bytespublic static void main(String[] args)
protected String getRequest() throws IOException
getRequest
in class EepGet
IOException