Commit ea709009 by Tom Tromey Committed by Tom Tromey

ZipInputStream.java (createZipEntry): Implemented.

	* java/util/zip/ZipInputStream.java (createZipEntry):
	Implemented.

From-SVN: r35810
parent a729a4e9
2000-08-19 Tom Tromey <tromey@cygnus.com>
* java/util/zip/ZipInputStream.java (createZipEntry):
Implemented.
Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com> Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
* java/util/jar/Attributes.java, java/util/jar/JarEntry.java, * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
......
...@@ -247,10 +247,11 @@ public class ByteArrayOutputStream extends OutputStream ...@@ -247,10 +247,11 @@ public class ByteArrayOutputStream extends OutputStream
static static
{ {
initial_buffer_size int r
= Integer.getInteger ("gnu.java.io.ByteArrayOutputStream.initialBufferSize", = Integer.getInteger ("gnu.java.io.ByteArrayOutputStream.initialBufferSize",
DEFAULT_INITIAL_BUFFER_SIZE).intValue (); DEFAULT_INITIAL_BUFFER_SIZE).intValue ();
if (initial_buffer_size <= 0) if (r <= 0)
initial_buffer_size = DEFAULT_INITIAL_BUFFER_SIZE; r = DEFAULT_INITIAL_BUFFER_SIZE;
initial_buffer_size = r;
} }
} }
...@@ -125,8 +125,7 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants ...@@ -125,8 +125,7 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
protected ZipEntry createZipEntry (String name) protected ZipEntry createZipEntry (String name)
{ {
// FIXME - must figure out what this is supposed to do. return new ZipEntry (name);
return null;
} }
public int read (byte[] b, int off, int len) throws IOException public int read (byte[] b, int off, int len) throws IOException
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment