All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.impl.common.LibraryDefinition

java.lang.Object
   |
   +----com.sun.jaw.impl.common.LibraryDefinition

public class LibraryDefinition
extends Object
implements Serializable
A LibraryDefinition is a machine neutral definition for a native library.

Eventually this class will also have the means to validate and verify that the library has come from a trusted source and the class has not been changed.


Constructor Index

 o LibraryDefinition()
This constructor creates an empty, but initialized LibraryDefinition.

Method Index

 o getClassVersion()
Returns the version of this class.
 o getImage()
Gets the bytes that define this class.
 o getLibBaseName()
Gets the library base path name associated with this definition.
 o getLibName()
Gets the library name associated with this definition.
 o getLibVersion()
Gets the library version number for the library associated with this definition.
 o getNativeName()
Builds a platform specific library name.
 o getOSArch()
Gets the machine architecture associated with this definition.
 o getOSName()
Gets the operating system name associated with this definition.
 o getOSVersion()
Gets the operating system version associated with this definition.
 o getRelativePath()
Returns a relative pathname for a library that expresses the portion of the path beneath the library base path.
 o setByteImage(File)
Copies the actual library bytes into the byteImage byte array attribute.
 o setLibBaseName(String)
Sets the library base path name associated with this definition.
 o setLibName(String)
Sets the library name associated with this definition.
 o setLibVersion(long)
Sets the library version number for the library associated with this definition.
 o setOSArch(String)
Sets the machine architecture associated with this definition.
 o setOSName(String)
Sets the operating system name associated with this definition.
 o setOSVersion(String)
Sets the operating system version associated with this definition.

Constructors

 o LibraryDefinition
 public LibraryDefinition()
This constructor creates an empty, but initialized LibraryDefinition.

Methods

 o getImage
 public byte[] getImage()
Gets the bytes that define this class.

 o setByteImage
 public void setByteImage(File file_obj) throws IOException
Copies the actual library bytes into the byteImage byte array attribute.

Throws: IOException
Signals that an I/O exception of some sort has occurred.
 o getLibName
 public String getLibName()
Gets the library name associated with this definition.

 o setLibName
 public void setLibName(String name)
Sets the library name associated with this definition.

 o getLibBaseName
 public String getLibBaseName()
Gets the library base path name associated with this definition.

 o setLibBaseName
 public void setLibBaseName(String baseName)
Sets the library base path name associated with this definition.

 o getLibVersion
 public long getLibVersion()
Gets the library version number for the library associated with this definition.

 o setLibVersion
 public void setLibVersion(long version)
Sets the library version number for the library associated with this definition. It accepts a long argument that is the system version number.

 o getOSName
 public String getOSName()
Gets the operating system name associated with this definition.

 o setOSName
 public void setOSName(String name)
Sets the operating system name associated with this definition.

 o getOSArch
 public String getOSArch()
Gets the machine architecture associated with this definition.

 o setOSArch
 public void setOSArch(String arch)
Sets the machine architecture associated with this definition.

 o getOSVersion
 public String getOSVersion()
Gets the operating system version associated with this definition.

 o setOSVersion
 public void setOSVersion(String version)
Sets the operating system version associated with this definition.

 o getRelativePath
 public String getRelativePath()
Returns a relative pathname for a library that expresses the portion of the path beneath the library base path. The file separator is determined from the runtime.

 o getNativeName
 public String getNativeName()
Builds a platform specific library name.

Parameters:
libName - The library name.
Returns:
The platform specific library name.
 o getClassVersion
 public String getClassVersion()
Returns the version of this class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index