Sets the compression method. Only DEFLATED and STORED are supported. @exception IllegalArgumentException if method is not supported. @see ZipOutputStream#DEFLATED @see ZipOutputStream#STORED
(int method)
| 305 | * @see ZipOutputStream#STORED |
| 306 | */ |
| 307 | public void setMethod(int method) |
| 308 | { |
| 309 | if (method != STORED |
| 310 | && method != DEFLATED) |
| 311 | throw new IllegalArgumentException(); |
| 312 | this.method = (short) method; |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * Gets the compression method. |
no outgoing calls
no test coverage detected