You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/03/03 14:41:14 UTC
svn commit: r382809 -
/incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java
Author: tellison
Date: Fri Mar 3 05:41:14 2006
New Revision: 382809
URL: http://svn.apache.org/viewcvs?rev=382809&view=rev
Log:
Fix bug HARMONY-160 (Three JSE 5 methods are not implemented in java.util.zip.InflaterInputStream)
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java?rev=382809&r1=382808&r2=382809&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java Fri Mar 3 05:41:14 2006
@@ -227,5 +227,40 @@
super.close();
}
}
+
+ /**
+ * Marks the current position in the stream.
+ *
+ * This implementation overrides the supertype implementation to do nothing
+ * at all.
+ *
+ * @param readlimit
+ * of no use
+ */
+ public void mark(int readlimit) {
+ // do nothing
+ }
+
+ /**
+ * Reset the position of the stream to the last mark position.
+ *
+ * This implementation overrides the supertype implementation and always
+ * throws an {@link IOException IOException} when called.
+ *
+ * @throws IOException
+ * if the method is called
+ */
+ public void reset() throws IOException{
+ throw new IOException();
+ }
+
+ /**
+ * Answers whether the receiver implements mark semantics. This type
+ * does not support mark, so always responds <code>false</code>.
+ * @return false
+ */
+ public boolean markSupported() {
+ return false;
+ }
}