summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/zip/Deflater.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/util/zip/Deflater.java')
-rw-r--r--libjava/java/util/zip/Deflater.java24
1 files changed, 22 insertions, 2 deletions
diff --git a/libjava/java/util/zip/Deflater.java b/libjava/java/util/zip/Deflater.java
index 8ac8a34a6ae..47383ab4baa 100644
--- a/libjava/java/util/zip/Deflater.java
+++ b/libjava/java/util/zip/Deflater.java
@@ -174,12 +174,32 @@ public class Deflater
/**
* Gets the number of input bytes processed so far.
*/
- public native int getTotalIn();
+ @Deprecated
+ public int getTotalIn()
+ {
+ return (int) getBytesRead();
+ }
+
+ /**
+ * Gets the number of input bytes processed so far.
+ * @since 1.5
+ */
+ public native long getBytesRead();
+
+ /**
+ * Gets the number of output bytes so far.
+ */
+ @Deprecated
+ public int getTotalOut()
+ {
+ return (int) getBytesWritten();
+ }
/**
* Gets the number of output bytes so far.
+ * @since 1.5
*/
- public native int getTotalOut();
+ public native long getBytesWritten();
/**
* Finalizes this object.
OpenPOWER on IntegriCloud