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.
-
LibraryDefinition()
- This constructor creates an empty, but initialized
LibraryDefinition.
-
getClassVersion()
- Returns the version of this class.
-
getImage()
-
Gets the bytes that define this class.
-
getLibBaseName()
-
Gets the library base path name associated with this definition.
-
getLibName()
-
Gets the library name associated with this definition.
-
getLibVersion()
-
Gets the library version number for the library associated with this
definition.
-
getNativeName()
- Builds a platform specific library name.
-
getOSArch()
-
Gets the machine architecture associated with this definition.
-
getOSName()
-
Gets the operating system name associated with this definition.
-
getOSVersion()
-
Gets the operating system version associated with this definition.
-
getRelativePath()
- Returns a relative pathname for a library that expresses the portion
of the path beneath the library base path.
-
setByteImage(File)
- Copies the actual library bytes into the byteImage byte
array attribute.
-
setLibBaseName(String)
-
Sets the library base path name associated with this definition.
-
setLibName(String)
-
Sets the library name associated with this definition.
-
setLibVersion(long)
-
Sets the library version number for the library associated with this
definition.
-
setOSArch(String)
-
Sets the machine architecture associated with this definition.
-
setOSName(String)
-
Sets the operating system name associated with this definition.
-
setOSVersion(String)
-
Sets the operating system version associated with this definition.
LibraryDefinition
public LibraryDefinition()
- This constructor creates an empty, but initialized
LibraryDefinition.
getImage
public byte[] getImage()
- Gets the bytes that define this class.
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.
getLibName
public String getLibName()
- Gets the library name associated with this definition.
setLibName
public void setLibName(String name)
- Sets the library name associated with this definition.
getLibBaseName
public String getLibBaseName()
- Gets the library base path name associated with this definition.
setLibBaseName
public void setLibBaseName(String baseName)
- Sets the library base path name associated with this definition.
getLibVersion
public long getLibVersion()
- Gets the library version number for the library associated with this
definition.
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.
getOSName
public String getOSName()
- Gets the operating system name associated with this definition.
setOSName
public void setOSName(String name)
- Sets the operating system name associated with this definition.
getOSArch
public String getOSArch()
- Gets the machine architecture associated with this definition.
setOSArch
public void setOSArch(String arch)
- Sets the machine architecture associated with this definition.
getOSVersion
public String getOSVersion()
- Gets the operating system version associated with this definition.
setOSVersion
public void setOSVersion(String version)
- Sets the operating system version associated with this definition.
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.
getNativeName
public String getNativeName()
- Builds a platform specific library name.
- Parameters:
- libName - The library name.
- Returns:
- The platform specific library name.
getClassVersion
public String getClassVersion()
- Returns the version of this class.
All Packages Class Hierarchy This Package Previous Next Index