Java Doc for Manifest.java in  » Build » ANT » org » apache » tools » ant » taskdefs » 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 » Build » ANT » org.apache.tools.ant.taskdefs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.taskdefs.Manifest

Manifest
public class Manifest (Code)

Inner Class :public static class Attribute
Inner Class :public static class Section

Field Summary
final public static  StringATTRIBUTE_CLASSPATH
    
final public static  StringATTRIBUTE_FROM
    
final public static  StringATTRIBUTE_MANIFEST_VERSION
    
final public static  StringATTRIBUTE_NAME
    
final public static  StringATTRIBUTE_SIGNATURE_VERSION
    
final public static  StringDEFAULT_MANIFEST_VERSION
    
final public static  StringEOL
    
final public static  StringERROR_FROM_FORBIDDEN
    
final public static  StringJAR_ENCODING
     Encoding to be used for JAR files.
final public static  intMAX_LINE_LENGTH
    
final public static  intMAX_SECTION_LENGTH
     Max length of a line section which is continued.

Constructor Summary
public  Manifest()
    
public  Manifest(Reader r)
    

Method Summary
public  voidaddConfiguredAttribute(Attribute attribute)
     Add an attribute to the manifest - it is added to the main section.
public  voidaddConfiguredSection(Section section)
    
public  booleanequals(Object rhs)
    
See Also:   java.lang.Object.equals
Parameters:
  rhs - the object to check for equality.
public static  ManifestgetDefaultManifest()
     Construct a manifest from Ant's default manifest file.
public  SectiongetMainSection()
    
public  StringgetManifestVersion()
    
public  SectiongetSection(String name)
     Get a particular section from the manifest
Parameters:
  name - the name of the section desired.
public  EnumerationgetSectionNames()
     Get the section names in this manifest.
public  EnumerationgetWarnings()
     Get the warnings for this manifest.
public  inthashCode()
    
public  voidmerge(Manifest other)
    
public  voidmerge(Manifest other, boolean overwriteMain)
    
public  StringtoString()
    
public  voidwrite(PrintWriter writer)
     Write the manifest out to a print writer.

Field Detail
ATTRIBUTE_CLASSPATH
final public static String ATTRIBUTE_CLASSPATH(Code)
The Class-Path Header is special - it can be duplicated



ATTRIBUTE_FROM
final public static String ATTRIBUTE_FROM(Code)
The From Header is disallowed in a Manifest



ATTRIBUTE_MANIFEST_VERSION
final public static String ATTRIBUTE_MANIFEST_VERSION(Code)
The standard manifest version header



ATTRIBUTE_NAME
final public static String ATTRIBUTE_NAME(Code)
The Name Attribute is the first in a named section



ATTRIBUTE_SIGNATURE_VERSION
final public static String ATTRIBUTE_SIGNATURE_VERSION(Code)
The standard Signature Version header



DEFAULT_MANIFEST_VERSION
final public static String DEFAULT_MANIFEST_VERSION(Code)
Default Manifest version if one is not specified



EOL
final public static String EOL(Code)
The End-Of-Line marker in manifests



ERROR_FROM_FORBIDDEN
final public static String ERROR_FROM_FORBIDDEN(Code)
Error for attributes



JAR_ENCODING
final public static String JAR_ENCODING(Code)
Encoding to be used for JAR files.



MAX_LINE_LENGTH
final public static int MAX_LINE_LENGTH(Code)
The max length of a line in a Manifest



MAX_SECTION_LENGTH
final public static int MAX_SECTION_LENGTH(Code)
Max length of a line section which is continued. Need to allow for the CRLF.




Constructor Detail
Manifest
public Manifest()(Code)
Construct an empty manifest



Manifest
public Manifest(Reader r) throws ManifestException, IOException(Code)
Read a manifest file from the given reader
Parameters:
  r - is the reader from which the Manifest is read
throws:
  ManifestException - if the manifest is not valid accordingto the JAR spec
throws:
  IOException - if the manifest cannot be read from the reader.




Method Detail
addConfiguredAttribute
public void addConfiguredAttribute(Attribute attribute) throws ManifestException(Code)
Add an attribute to the manifest - it is added to the main section.
Parameters:
  attribute - the attribute to be added.
exception:
  ManifestException - if the attribute is not valid.



addConfiguredSection
public void addConfiguredSection(Section section) throws ManifestException(Code)
Add a section to the manifest
Parameters:
  section - the manifest section to be added
exception:
  ManifestException - if the secti0on is not valid.



equals
public boolean equals(Object rhs)(Code)

See Also:   java.lang.Object.equals
Parameters:
  rhs - the object to check for equality. true if the version, main and sections are the same.



getDefaultManifest
public static Manifest getDefaultManifest() throws BuildException(Code)
Construct a manifest from Ant's default manifest file. the default manifest.
exception:
  BuildException - if there is a problem loading thedefault manifest



getMainSection
public Section getMainSection()(Code)
Get the main section of the manifest the main section of the manifest



getManifestVersion
public String getManifestVersion()(Code)
Get the version of the manifest the manifest's version string



getSection
public Section getSection(String name)(Code)
Get a particular section from the manifest
Parameters:
  name - the name of the section desired. the specified section or null if that sectiondoes not exist in the manifest



getSectionNames
public Enumeration getSectionNames()(Code)
Get the section names in this manifest. an Enumeration of section names



getWarnings
public Enumeration getWarnings()(Code)
Get the warnings for this manifest. an enumeration of warning strings



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode a hashcode based on the version, main and sections.



merge
public void merge(Manifest other) throws ManifestException(Code)
Merge the contents of the given manifest into this manifest
Parameters:
  other - the Manifest to be merged with this one.
throws:
  ManifestException - if there is a problem merging themanifest according to the Manifest spec.



merge
public void merge(Manifest other, boolean overwriteMain) throws ManifestException(Code)
Merge the contents of the given manifest into this manifest
Parameters:
  other - the Manifest to be merged with this one.
Parameters:
  overwriteMain - whether to overwrite the main sectionof the current manifest
throws:
  ManifestException - if there is a problem merging themanifest according to the Manifest spec.



toString
public String toString()(Code)
Convert the manifest to its string representation a multiline string with the Manifest as itappears in a Manifest file.



write
public void write(PrintWriter writer) throws IOException(Code)
Write the manifest out to a print writer.
Parameters:
  writer - the Writer to which the manifest is written
throws:
  IOException - if the manifest cannot be written



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.