Creates a zip entry with the given name. @param name the name. May include directory components separated by '/'. @exception NullPointerException when name is null. @exception IllegalArgumentException when name is bigger then 65535 chars.
(String name)
| 90 | * @exception IllegalArgumentException when name is bigger then 65535 chars. |
| 91 | */ |
| 92 | public ZipEntry(String name) |
| 93 | { |
| 94 | int length = name.length(); |
| 95 | if (length > 65535) |
| 96 | throw new IllegalArgumentException("name length is " + length); |
| 97 | this.name = name; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Creates a copy of the given zip entry. |