Source Code Cross Referenced for DriverResource.java in  » 6.0-JDK-Modules-com.sun.java » util » com » sun » java » util » jar » pack » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Portions Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
003:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004:         *
005:         * This code is free software; you can redistribute it and/or modify it
006:         * under the terms of the GNU General Public License version 2 only, as
007:         * published by the Free Software Foundation.  Sun designates this
008:         * particular file as subject to the "Classpath" exception as provided
009:         * by Sun in the LICENSE file that accompanied this code.
010:         *
011:         * This code is distributed in the hope that it will be useful, but WITHOUT
012:         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013:         * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
014:         * version 2 for more details (a copy is included in the LICENSE file that
015:         * accompanied this code).
016:         *
017:         * You should have received a copy of the GNU General Public License version
018:         * 2 along with this work; if not, write to the Free Software Foundation,
019:         * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020:         *
021:         * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022:         * CA 95054 USA or visit www.sun.com if you need additional information or
023:         * have any questions.
024:         */
025:
026:        package com.sun.java.util.jar.pack;
027:
028:        import java.util.ListResourceBundle;
029:
030:        public class DriverResource extends ListResourceBundle {
031:            public static final String VERSION = "VERSION";
032:            public static final String BAD_ARGUMENT = "BAD_ARGUMENT";
033:            public static final String BAD_OPTION = "BAD_OPTION";
034:            public static final String BAD_REPACK_OUTPUT = "BAD_REPACK_OUTPUT";
035:            public static final String DETECTED_ZIP_COMMENT = "DETECTED_ZIP_COMMENT";
036:            public static final String SKIP_FOR_REPACKED = "SKIP_FOR_REPACKED";
037:            public static final String WRITE_PACK_FILE = "WRITE_PACK_FILE";
038:            public static final String WIRTE_PACKGZ_FILE = "WIRTE_PACKGZ_FILE";
039:            public static final String SKIP_FOR_MOVE_FAILED = "SKIP_FOR_MOVE_FAILED";
040:            public static final String PACK_HELP = "PACK_HELP";
041:            public static final String UNPACK_HELP = "UNPACK_HELP";
042:            public static final String MORE_INFO = "MORE_INFO";
043:            public static final String DUPLICATE_OPTION = "DUPLICATE_OPTION";
044:            public static final String BAD_SPEC = "BAD_SPEC";
045:
046:            //The following string is duplicate in PACK and UNPACK comment,which was draw out to ruduce translation work.
047:            private static final String PARAMETER_V = "  -v, --verbose                   increase program verbosity";
048:            private static final String PARAMETER_Q = "  -q, --quiet                     set verbosity to lowest level";
049:            private static final String PARAMETER_LF = "  -l{F}, --log-file={F}           output to the given log file, or '-' for System.out";
050:            private static final String PARAMETER_H = "  -?, -h, --help                  print this message";
051:            private static final String PARAMETER_VER = "  -V, --version                   print program version";
052:            private static final String PARAMETER_J = "  -J{X}                           pass option X to underlying Java VM";
053:
054:            //The following are outputs of command 'pack200' and 'unpack200'.
055:            //Don't translate command arguments ,words with a prefix of '-' or '--'.
056:            //
057:            private static final Object[][] resource = {
058:                    { VERSION, "{0} version {1}" },//parameter 0:class name;parameter 1: version value
059:                    { BAD_ARGUMENT, "Bad argument: {0}" },
060:                    { BAD_OPTION, "Bad option: {0}={1}" },//parameter 0:option name;parameter 1:option value
061:                    { BAD_REPACK_OUTPUT, "Bad --repack output: {0}" },//parameter 0:filename
062:                    { DETECTED_ZIP_COMMENT, "Detected ZIP comment: {0}" },//parameter 0:comment
063:                    { SKIP_FOR_REPACKED,
064:                            "Skipping because already repacked: {0}" },//parameter 0:filename
065:                    { WRITE_PACK_FILE,
066:                            "To write a *.pack file, specify --no-gzip: {0}" },//parameter 0:filename
067:                    { WIRTE_PACKGZ_FILE,
068:                            "To write a *.pack.gz file, specify --gzip: {0}" },//parameter 0:filename
069:                    { SKIP_FOR_MOVE_FAILED,
070:                            "Skipping unpack because move failed: {0}" },//parameter 0:filename
071:                    {
072:                            PACK_HELP,
073:                            new String[] {
074:                                    "Usage:  pack200 [-opt... | --option=value]... x.pack[.gz] y.jar",
075:                                    "",
076:                                    "Packing Options",
077:                                    "  -g, --no-gzip                   output a plain *.pack file with no zipping",
078:                                    "  --gzip                          (default) post-process the pack output with gzip",
079:                                    "  -G, --strip-debug               remove debugging attributes while packing",
080:                                    "  -O, --no-keep-file-order        do not transmit file ordering information",
081:                                    "  --keep-file-order               (default) preserve input file ordering",
082:                                    "  -S{N}, --segment-limit={N}      output segment limit (default N=1Mb)",
083:                                    "  -E{N}, --effort={N}             packing effort (default N=5)",
084:                                    "  -H{h}, --deflate-hint={h}       transmit deflate hint: true, false, or keep (default)",
085:                                    "  -m{V}, --modification-time={V}  transmit modtimes: latest or keep (default)",
086:                                    "  -P{F}, --pass-file={F}          transmit the given input element(s) uncompressed",
087:                                    "  -U{a}, --unknown-attribute={a}  unknown attribute action: error, strip, or pass (default)",
088:                                    "  -C{N}={L}, --class-attribute={N}={L}  (user-defined attribute)",
089:                                    "  -F{N}={L}, --field-attribute={N}={L}  (user-defined attribute)",
090:                                    "  -M{N}={L}, --method-attribute={N}={L} (user-defined attribute)",
091:                                    "  -D{N}={L}, --code-attribute={N}={L}   (user-defined attribute)",
092:                                    "  -f{F}, --config-file={F}        read file F for Pack200.Packer properties",
093:                                    PARAMETER_V,
094:                                    PARAMETER_Q,
095:                                    PARAMETER_LF,
096:                                    PARAMETER_H,
097:                                    PARAMETER_VER,
098:                                    PARAMETER_J,
099:                                    "",
100:                                    "Notes:",
101:                                    "  The -P, -C, -F, -M, and -D options accumulate.",
102:                                    "  Example attribute definition:  -C SourceFile=RUH .",
103:                                    "  Config. file properties are defined by the Pack200 API.",
104:                                    "  For meaning of -S, -E, -H-, -m, -U values, see Pack200 API.",
105:                                    "  Layout definitions (like RUH) are defined by JSR 200.",
106:                                    "",
107:                                    "Repacking mode updates the JAR file with a pack/unpack cycle:",
108:                                    "    pack200 [-r|--repack] [-opt | --option=value]... [repackedy.jar] y.jar\n" } },
109:                    {
110:                            UNPACK_HELP,
111:                            new String[] {
112:                                    "Usage:  unpack200 [-opt... | --option=value]... x.pack[.gz] y.jar\n",
113:                                    "",
114:                                    "Unpacking Options",
115:                                    "  -H{h}, --deflate-hint={h}     override transmitted deflate hint: true, false, or keep (default)",
116:                                    "  -r, --remove-pack-file        remove input file after unpacking",
117:                                    PARAMETER_V, PARAMETER_Q, PARAMETER_LF,
118:                                    PARAMETER_H, PARAMETER_VER, PARAMETER_J, } },
119:
120:                    { MORE_INFO, "(For more information, run {0} --help .)" },//parameter 0:command name
121:                    { DUPLICATE_OPTION, "duplicate option: {0}" },//parameter 0:option
122:                    { BAD_SPEC, "bad spec for {0}: {1}" },//parameter 0:option;parameter 1:specifier
123:            };
124:
125:            protected Object[][] getContents() {
126:                return resource;
127:            }
128:
129:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.