1 |
/* Deflater.java - Compress a data stream |
/* Deflater.java - Compress a data stream |
2 |
Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc. |
Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
150 |
private int state; |
private int state; |
151 |
|
|
152 |
/** The total bytes of output written. */ |
/** The total bytes of output written. */ |
153 |
private int totalOut; |
private long totalOut; |
154 |
|
|
155 |
/** The pending output. */ |
/** The pending output. */ |
156 |
private DeflaterPending pending; |
private DeflaterPending pending; |
242 |
/** |
/** |
243 |
* Gets the number of input bytes processed so far. |
* Gets the number of input bytes processed so far. |
244 |
*/ |
*/ |
245 |
|
@Deprecated |
246 |
public int getTotalIn() |
public int getTotalIn() |
247 |
{ |
{ |
248 |
|
return (int) engine.getTotalIn(); |
249 |
|
} |
250 |
|
|
251 |
|
/** |
252 |
|
* Gets the number of input bytes processed so far. |
253 |
|
* @since 1.5 |
254 |
|
*/ |
255 |
|
public long getBytesRead() |
256 |
|
{ |
257 |
return engine.getTotalIn(); |
return engine.getTotalIn(); |
258 |
} |
} |
259 |
|
|
260 |
/** |
/** |
261 |
* Gets the number of output bytes so far. |
* Gets the number of output bytes so far. |
262 |
*/ |
*/ |
263 |
|
@Deprecated |
264 |
public int getTotalOut() |
public int getTotalOut() |
265 |
{ |
{ |
266 |
|
return (int) totalOut; |
267 |
|
} |
268 |
|
|
269 |
|
/** |
270 |
|
* Gets the number of output bytes so far. |
271 |
|
* @since 1.5 |
272 |
|
*/ |
273 |
|
public long getBytesWritten() |
274 |
|
{ |
275 |
return totalOut; |
return totalOut; |
276 |
} |
} |
277 |
|
|