* 2005-11-15 0.6.1.5 released

This commit is contained in:
jrandom
2005-11-16 03:20:20 +00:00
committed by zzz
parent 5182008b38
commit f7236d7d58
11 changed files with 56 additions and 16 deletions

View File

@@ -224,8 +224,20 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer {
_gzipOut = new InternalGZIPOutputStream(out);
out = _gzipOut;
}
public long getTotalRead() { return _gzipOut.getTotalRead(); }
public long getTotalCompressed() { return _gzipOut.getTotalCompressed(); }
public long getTotalRead() {
InternalGZIPOutputStream gzipOut = _gzipOut;
if (gzipOut != null)
return gzipOut.getTotalRead();
else
return 0;
}
public long getTotalCompressed() {
InternalGZIPOutputStream gzipOut = _gzipOut;
if (gzipOut != null)
return gzipOut.getTotalCompressed();
else
return 0;
}
}
private class InternalGZIPOutputStream extends GZIPOutputStream {
public InternalGZIPOutputStream(OutputStream target) throws IOException {