public class Configuration
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
byte[] |
getAsBytes()
Returns the contents of this configuration object.
|
java.lang.String |
getAsString()
Returns the contents of this configuration object.
|
void |
loadFromFile(java.lang.String fileName)
Loads the contents of a file in a configuration object.
|
void |
set(byte[] configurationBytes)
Sets the contents of this configuration object.
|
void |
set(java.lang.String configurationString)
Sets the contents of this configuration object.
|
void |
writeToFile(java.lang.String fileName)
Writes the contents of a configuration object to a file.
|
public byte[] getAsBytes()
public java.lang.String getAsString()
public void set(java.lang.String configurationString)
A
- string containing the configuration this object will represent.TibjmsAdminException
- if not authorized or an error occurred.public void set(byte[] configurationBytes)
A
- byte array containing the configuration this object will
represent.TibjmsAdminException
- if not authorized or an error occurred.public void loadFromFile(java.lang.String fileName) throws TibjmsAdminException, java.io.FileNotFoundException, java.io.IOException
The
- filename of the file to load.TibjmsAdminException
- if not authorized or an error occurred.java.io.FileNotFoundException
java.io.IOException
public void writeToFile(java.lang.String fileName) throws java.lang.Exception
The
- filename of the file to create.TibjmsAdminException
- if not authorized or an error occurred.java.lang.Exception
Copyright © Cloud Software Group, Inc. All rights reserved