<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.util.zip.ZipEntry
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.zip.html">This Package</a>  <a href="java.util.zip.InflaterInputStream.html#_top_">Previous</a>  <a href="java.util.zip.ZipFile.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.util.zip.ZipEntry
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.util.zip.ZipEntry
</pre>
<hr>
<dl>
  <dt> public class <b>ZipEntry</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements ZipConstants
</dl>
This class is used to represent a ZIP file entry.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#DEFLATED"><b>DEFLATED</b></a>
  <dd>  Compression method for compressed (deflated) entries.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#STORED"><b>STORED</b></a>
  <dd>  Compression method for uncompressed entries.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ZipEntry(java.lang.String)"><b>ZipEntry</b></a>(String)
  <dd>  Creates a new ZIP file entry with the specified name.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getComment()"><b>getComment</b></a>()
  <dd>  Returns the comment string for the entry, or null if none.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCompressedSize()"><b>getCompressedSize</b></a>()
  <dd>  Returns the compressed size of the entry data, or -1 if not known.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCrc()"><b>getCrc</b></a>()
  <dd>  Returns the CRC-32 checksum of the uncompressed entry data, or -1 if
 not known.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getExtra()"><b>getExtra</b></a>()
  <dd>  Returns the extra field data for the entry, or null if none.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMethod()"><b>getMethod</b></a>()
  <dd>  Returns the compression method of the entry, or -1 if not specified.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getName()"><b>getName</b></a>()
  <dd>  Returns the name of the entry.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getSize()"><b>getSize</b></a>()
  <dd>  Returns the uncompressed size of the entry data, or -1 if not known.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getTime()"><b>getTime</b></a>()
  <dd>  Returns the modification time of the entry, or -1 if not specified.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isDirectory()"><b>isDirectory</b></a>()
  <dd>  Returns true if this is a directory entry.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setComment(java.lang.String)"><b>setComment</b></a>(String)
  <dd>  Sets the optional comment string for the entry.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setCrc(long)"><b>setCrc</b></a>(long)
  <dd>  Sets the CRC-32 checksum of the uncompressed entry data.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setExtra(byte[])"><b>setExtra</b></a>(byte[])
  <dd>  Sets the optional extra field data for the entry.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setMethod(int)"><b>setMethod</b></a>(int)
  <dd>  Sets the compression method for the entry.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setSize(long)"><b>setSize</b></a>(long)
  <dd>  Sets the uncompressed size of the entry data.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setTime(long)"><b>setTime</b></a>(long)
  <dd>  Sets the modification time of the entry.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns a string representation of the ZIP entry.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="STORED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>STORED</b>
<pre>
 public static final int STORED
</pre>
<dl>
  <dd> Compression method for uncompressed entries.<p>
</dl>
<a name="DEFLATED"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>DEFLATED</b>
<pre>
 public static final int DEFLATED
</pre>
<dl>
  <dd> Compression method for compressed (deflated) entries.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ZipEntry"></a>
<a name="ZipEntry(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ZipEntry</b>
<pre>
 public ZipEntry(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Creates a new ZIP file entry with the specified name.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the entry name
    <dt> <b>Throws:</b> <a href="java.lang.NullPointerException.html#_top_">NullPointerException</a>
    <dd> if the entry name is null
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the entry name is longer than
		  0xFFFF bytes
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getName"><b>getName</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getName()
</pre>
<dl>
  <dd> Returns the name of the entry.
<p>
</dl>
<a name="setTime(long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setTime"><b>setTime</b></a>
<pre>
 public void setTime(long time)
</pre>
<dl>
  <dd> Sets the modification time of the entry.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> time - the entry modification time in number of milliseconds
		   since the epoch
  </dl></dd>
</dl>
<a name="getTime()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getTime"><b>getTime</b></a>
<pre>
 public long getTime()
</pre>
<dl>
  <dd> Returns the modification time of the entry, or -1 if not specified.
<p>
</dl>
<a name="setSize(long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setSize"><b>setSize</b></a>
<pre>
 public void setSize(long size)
</pre>
<dl>
  <dd> Sets the uncompressed size of the entry data.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> size - the uncompressed size in bytes
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified size is less
		  than 0 or greater than 0xFFFFFFFF bytes
  </dl></dd>
</dl>
<a name="getSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getSize"><b>getSize</b></a>
<pre>
 public long getSize()
</pre>
<dl>
  <dd> Returns the uncompressed size of the entry data, or -1 if not known.
<p>
</dl>
<a name="setCrc(long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setCrc"><b>setCrc</b></a>
<pre>
 public void setCrc(long crc)
</pre>
<dl>
  <dd> Sets the CRC-32 checksum of the uncompressed entry data.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> crc - the CRC-32 value
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified CRC-32 value is
		  less than 0 or greater than 0xFFFFFFFF
  </dl></dd>
</dl>
<a name="getCrc()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCrc"><b>getCrc</b></a>
<pre>
 public long getCrc()
</pre>
<dl>
  <dd> Returns the CRC-32 checksum of the uncompressed entry data, or -1 if
 not known.
<p>
</dl>
<a name="setMethod(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setMethod"><b>setMethod</b></a>
<pre>
 public void setMethod(int method)
</pre>
<dl>
  <dd> Sets the compression method for the entry.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> method - the compression method, either STORED or DEFLATED
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the specified compression
		  method is invalid
  </dl></dd>
</dl>
<a name="getMethod()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMethod"><b>getMethod</b></a>
<pre>
 public int getMethod()
</pre>
<dl>
  <dd> Returns the compression method of the entry, or -1 if not specified.
<p>
</dl>
<a name="setExtra(byte[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setExtra"><b>setExtra</b></a>
<pre>
 public void setExtra(byte extra[])
</pre>
<dl>
  <dd> Sets the optional extra field data for the entry.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> extra - the extra field data bytes
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the length of the specified
		  extra field data is greater than 0xFFFFF bytes
  </dl></dd>
</dl>
<a name="getExtra()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getExtra"><b>getExtra</b></a>
<pre>
 public byte[] getExtra()
</pre>
<dl>
  <dd> Returns the extra field data for the entry, or null if none.
<p>
</dl>
<a name="setComment(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setComment"><b>setComment</b></a>
<pre>
 public void setComment(<a href="java.lang.String.html#_top_">String</a> comment)
</pre>
<dl>
  <dd> Sets the optional comment string for the entry.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> comment - the comment string
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the length of the specified
		  comment string is greater than 0xFFFF bytes
  </dl></dd>
</dl>
<a name="getComment()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getComment"><b>getComment</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getComment()
</pre>
<dl>
  <dd> Returns the comment string for the entry, or null if none.
<p>
</dl>
<a name="getCompressedSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCompressedSize"><b>getCompressedSize</b></a>
<pre>
 public long getCompressedSize()
</pre>
<dl>
  <dd> Returns the compressed size of the entry data, or -1 if not known.
 In the case of a stored entry, the compressed size will be the same
 as the uncompressed size of the entry.
<p>
</dl>
<a name="isDirectory()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isDirectory"><b>isDirectory</b></a>
<pre>
 public boolean isDirectory()
</pre>
<dl>
  <dd> Returns true if this is a directory entry. A directory entry is
 defined to be one whose name ends with a '/'.
<p>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns a string representation of the ZIP entry.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.zip.html">This Package</a>  <a href="java.util.zip.InflaterInputStream.html#_top_">Previous</a>  <a href="java.util.zip.ZipFile.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
