equal
deleted
inserted
replaced
43 * to deploy or host JAR files on a website. |
43 * to deploy or host JAR files on a website. |
44 * The unpacker engine is used by deployment applications to |
44 * The unpacker engine is used by deployment applications to |
45 * transform the byte-stream back to JAR format. |
45 * transform the byte-stream back to JAR format. |
46 * <p> |
46 * <p> |
47 * Here is an example using packer and unpacker:<p> |
47 * Here is an example using packer and unpacker:<p> |
48 * <blockquote><pre> |
48 * <pre>{@code |
49 * import java.util.jar.Pack200; |
49 * import java.util.jar.Pack200; |
50 * import java.util.jar.Pack200.*; |
50 * import java.util.jar.Pack200.*; |
51 * ... |
51 * ... |
52 * // Create the Packer object |
52 * // Create the Packer object |
53 * Packer packer = Pack200.newPacker(); |
53 * Packer packer = Pack200.newPacker(); |
88 * // Must explicitly close the output. |
88 * // Must explicitly close the output. |
89 * jostream.close(); |
89 * jostream.close(); |
90 * } catch (IOException ioe) { |
90 * } catch (IOException ioe) { |
91 * ioe.printStackTrace(); |
91 * ioe.printStackTrace(); |
92 * } |
92 * } |
93 * </pre></blockquote> |
93 * }</pre> |
94 * <p> |
94 * <p> |
95 * A Pack200 file compressed with gzip can be hosted on HTTP/1.1 web servers. |
95 * A Pack200 file compressed with gzip can be hosted on HTTP/1.1 web servers. |
96 * The deployment applications can use "Accept-Encoding=pack200-gzip". This |
96 * The deployment applications can use "Accept-Encoding=pack200-gzip". This |
97 * indicates to the server that the client application desires a version of |
97 * indicates to the server that the client application desires a version of |
98 * the file encoded with Pack200 and further compressed with gzip. Please |
98 * the file encoded with Pack200 and further compressed with gzip. Please |