harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r382809 - /incubator/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java
Date Fri, 03 Mar 2006 13:41:14 GMT
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;
+	}
 
 }



Mime
View raw message