Android
java.util.jar
public class

java.util.jar.JarInputStream

java.lang.Object
java.io.InputStream Closeable
java.io.FilterInputStream
java.util.zip.InflaterInputStream
java.util.zip.ZipInputStream
java.util.jar.JarInputStream

Summary

Constants inherited from class java.util.zip.ZipInputStream
Fields inherited from class java.util.zip.InflaterInputStream
Fields inherited from class java.io.FilterInputStream

Public Constructors

            JarInputStream(InputStream stream, boolean verify)
Constructs a new JarInputStream from stream
            JarInputStream(InputStream stream)

Public Methods

          Manifest  getManifest()
Returns the Manifest object associated with this JarInputStream or null if no manifest entry exists.
          ZipEntry  getNextEntry()
Returns the next ZipEntry contained in this stream or null if no more entries are present.
          JarEntry  getNextJarEntry()
Returns the next JarEntry contained in this stream or null if no more entries are present.
          int  read(byte[] buffer, int offset, int length)
Reads up to the specified number of uncompressed bytes into the buffer starting at the offset.

Protected Methods

          ZipEntry  createZipEntry(String name)
Methods inherited from class java.util.zip.ZipInputStream
Methods inherited from class java.util.zip.InflaterInputStream
Methods inherited from class java.io.FilterInputStream
Methods inherited from class java.io.InputStream
Methods inherited from class java.lang.Object
Methods inherited from interface java.io.Closeable

Details

Public Constructors

public JarInputStream(InputStream stream, boolean verify)

Constructs a new JarInputStream from stream

Throws

IOException

public JarInputStream(InputStream stream)

Throws

IOException

Public Methods

public Manifest getManifest()

Returns the Manifest object associated with this JarInputStream or null if no manifest entry exists.

Returns

  • java.util.jar.Manifest

public ZipEntry getNextEntry()

Returns the next ZipEntry contained in this stream or null if no more entries are present.

Returns

  • java.util.zip.ZipEntry

Throws

IOException If an error occurs while reading the entry

public JarEntry getNextJarEntry()

Returns the next JarEntry contained in this stream or null if no more entries are present.

Returns

  • java.util.jar.JarEntry

Throws

IOException If an error occurs while reading the entry

public int read(byte[] buffer, int offset, int length)

Reads up to the specified number of uncompressed bytes into the buffer starting at the offset.

Parameters

buffer a byte array
offset the starting offset into the buffer
length the number of bytes to read

Returns

  • the number of bytes read

Throws

IOException

Protected Methods

protected ZipEntry createZipEntry(String name)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48