toolbox.oracle.osb.config
Class OSBConfigData

java.lang.Object
  extended by toolbox.oracle.osb.config.OSBConfigData

public class OSBConfigData
extends java.lang.Object

Java Bean style class to store, read and write OSB configuration data.

Author:
Hannes Holtzhausen

Constructor Summary
OSBConfigData()
          Default constructor.
 
Method Summary
 java.lang.String getDescription()
          Return the description of this data instance.
 byte[] getResourceData()
          Return the resource configuration data byte[].
 byte[] getXMLData()
          Return the XML customisation data byte[].
 byte[] readResourceJarFile(java.lang.String fileName)
          Read the resource configuration data in the named .jar file.
 byte[] readXMLCustomisationFile(java.lang.String fileName)
          Read the XML customisation data in the named .xml file.
 void setDescription(java.lang.String value)
          Set the description of this instance.
 void setResourceData(byte[] data)
          Set the resource configuration data byte[].
 void setXMLData(byte[] data)
          Set the byte array containing XML customisation data.
 void writeResourceJarFile(java.lang.String fileName)
          Write resource configuration data to the named .jar file.
 void writeXMLCustomisationFile(java.lang.String fileName)
          Write XML customisation data to the named .xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSBConfigData

public OSBConfigData()
Default constructor.

Method Detail

setResourceData

public void setResourceData(byte[] data)
Set the resource configuration data byte[].

Parameters:
data - byte[] containing resource configuration data.

getResourceData

public byte[] getResourceData()
Return the resource configuration data byte[].

Returns:
byte[] containing resource configuration data.

setXMLData

public void setXMLData(byte[] data)
Set the byte array containing XML customisation data.

Parameters:
data - byte[] containing XML customisation data.

getXMLData

public byte[] getXMLData()
Return the XML customisation data byte[].

Returns:
byte[] containing XML customisation data.

setDescription

public void setDescription(java.lang.String value)
Set the description of this instance.

Parameters:
value - String containing a simple description of this data instance.

getDescription

public java.lang.String getDescription()
Return the description of this data instance.

Returns:
String containing the description of this data instance.

writeResourceJarFile

public void writeResourceJarFile(java.lang.String fileName)
                          throws java.io.IOException
Write resource configuration data to the named .jar file.

Parameters:
fileName - String containing the absolute path and file name that must be created.
Throws:
java.io.IOException

readResourceJarFile

public byte[] readResourceJarFile(java.lang.String fileName)
                           throws java.io.IOException
Read the resource configuration data in the named .jar file.

Parameters:
fileName - String containing the absolute path and file name that must be read.
Returns:
byte[] containing the contents of the file.
Throws:
java.io.IOException

writeXMLCustomisationFile

public void writeXMLCustomisationFile(java.lang.String fileName)
                               throws java.io.IOException
Write XML customisation data to the named .xml file.

Parameters:
fileName - String containing the absolute path and file name that must be created.
Throws:
java.io.IOException

readXMLCustomisationFile

public byte[] readXMLCustomisationFile(java.lang.String fileName)
                                throws java.io.IOException
Read the XML customisation data in the named .xml file.

Parameters:
fileName - String containing the absolute path and file name that must be read.
Returns:
byte[] containing the contents of the file.
Throws:
java.io.IOException