com.sun.java.util.jar.pack

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun.java » util » com.sun.java.util.jar.pack 
com.sun.java.util.jar.pack

This package provides methods to read files from a JAR file and to transform them to a more compact transfer format called Pack200. It also provides methods to receive the transmitted data and expand it into a JAR file equivalent to the original JAR file.

The pack methods may be used by application developers who wish to deploy large JARs on the web. The unpack methods may be used by deployment applications such as Java Web Start and Java Plugin.

In typical use, the packed output should be further compressed using a suitable tool such as gzip or java.util.zip.GZIPOutputStream. The resulting file (with a suffix ".pack.gz") should be hosted on a HTTP/1.1 compliant server, which will be capable of handling "Accept-Encoding", as specified by the HTTP 1.1 RFC2616 specification.

NOTE: It is recommended that the original ".jar" file be hosted in addition to the ".pack.gz" file, so that older client implementations will continue to work reliably. (On-demand compression by the server is not recommended.)

When a client application requests a ".jar" file (call it "Large.jar"), the client will transmit the headers "Content-Type=application/x-java-archive" as well as "Accept-Encoding=pack200-gzip". This indicates to the server that the client application desires an version of the file encoded with Pack200 and further compressed with gzip.

The server implementation will typically check for the existence of "Large.pack.gz". If that file is available, the server will transmit it with the headers "Content-Encoding=pack200-gzip" and "Content-Type=application/x-java-archive".

If the ".pack.gz" file, is not available, then the server will transmit the original ".jar" with "Content-Encoding=null" and "Content-Type=application/x-java-archive".

A MIME type of "application/x-java-pack200" may be specified by the client application to indicate a ".pack" file is required. However, this has limited capability, and is not recommended.

Package Specification

Network Transfer Format Specification : http://jcp.org/en/jsr/detail?id=200

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:
  • @since JDK1.5.0

  • Java Source File NameTypeComment
    AdaptiveCoding.javaClass Adaptive coding.
    Attribute.javaClass Represents an attribute in a class-file.
    BandStructure.javaClass Define the structure and ordering of "bands" in a packed file.
    ClassReader.javaClass Reader for a class file that is being incorporated into a package.
    ClassWriter.javaClass Writer for a class file that is incorporated into a package.
    Code.javaClass Represents a chunk of bytecodes.
    Coding.javaClass Define the conversions between sequences of small integers and raw bytes.
    CodingChooser.javaClass Heuristic chooser of basic encodings.
    CodingMethod.javaInterface Interface for encoding and decoding int arrays using bytewise codes.
    ConstantPool.javaClass Representation of constant pool entries and indexes.
    Constants.javaInterface
    Driver.javaClass Command line interface for Pack200.
    DriverResource.javaClass
    Fixups.javaClass Collection of relocatable constant pool references.
    Histogram.javaClass Histogram derived from an integer array of events (int[]).
    Instruction.javaClass A parsed bytecode instruction.
    NativeUnpack.javaClass
    Package.javaClass Define the main data structure transmitted by pack/unpack.
    PackageReader.javaClass Reader for a package file.
    PackageWriter.javaClass Writer for a package file.
    PackerImpl.javaClass
    PopulationCoding.javaClass Population-based coding.
    PropMap.javaClass Control block for publishing Pack200 options to the other classes.
    UnpackerImpl.javaClass
    Utils.javaClass
    www.java2java.com | Contact Us
    Copyright 2009 - 12 Demo Source and Support. All rights reserved.
    All other trademarks are property of their respective owners.