Top Description Constructors Methods
org.apache.tools.ant.taskdefs.optional.extension

pack-priv Class LibraryDisplayer

extends Object
Class Inheritance
Imports
java.io.File, java.text.ParseException, java.util.jar.Manifest, org.apache.tools.ant.BuildException

Utility class to output the information in a jar relating to "Optional Packages" (formerly known as "Extensions") and Package Specifications.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
displayLibrary(final File
the file
file
)

Display the extensions and specifications contained within specified file.

pack-priv void
displayLibrary(final File
the file to use while reporting
file
,
final Manifest
the manifest of file
manifest
)

Display the extensions and specifications contained within specified file.

private void
displaySpecification(final Specification
the specification
specification
)

Print out specification details.

private Specification[]

Returns:

the specifications or null if none
getSpecifications
(final Manifest
the manifest
manifest
)

Get specifications from manifest.

private void
printLine(final int
the number of dashes to printout
size
)

Print out a line of '-'s equal to specified size.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LibraryDisplayerback to summary
pack-priv LibraryDisplayer()

Method Detail

displayLibraryback to summary
pack-priv void displayLibrary(final File file) throws BuildException

Display the extensions and specifications contained within specified file.

Parameters
file:File

the file

Exceptions
BuildException:
if fail to read file
displayLibraryback to summary
pack-priv void displayLibrary(final File file, final Manifest manifest) throws BuildException

Display the extensions and specifications contained within specified file.

Parameters
file:File

the file to use while reporting

manifest:Manifest

the manifest of file

Exceptions
BuildException:
if fail to read file
displaySpecificationback to summary
private void displaySpecification(final Specification specification)

Print out specification details.

Parameters
specification:Specification

the specification

getSpecificationsback to summary
private Specification[] getSpecifications(final Manifest manifest) throws BuildException

Get specifications from manifest.

Parameters
manifest:Manifest

the manifest

Returns:Specification[]

the specifications or null if none

Exceptions
BuildException:
if malformed specification sections
printLineback to summary
private void printLine(final int size)

Print out a line of '-'s equal to specified size.

Parameters
size:int

the number of dashes to printout