public class MasterConfigurationReference
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_COMMAND
Type flag for a master configuration reference with an OS command.
|
static int |
TYPE_FILE_LOCATION
Type flag for a master configuration reference with a file name.
|
| Constructor and Description |
|---|
MasterConfigurationReference(java.lang.String pFileLocationOrCmd,
int pType)
Creates a new
MasterConfigurationReference. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMasterConfigurationCommand()
Gets the operating system command of this master configuration reference.
|
java.lang.String |
getMasterConfigurationLocation()
Gets the file name of this master configuration file.
|
boolean |
isCommand()
Whether the master configuration reference is an operating system
command.
|
java.io.InputStream |
readMasterConfiguration()
Reads the master configuration file to an input stream using the standard
operating system file encoding.
|
public static final int TYPE_FILE_LOCATION
public static final int TYPE_COMMAND
public MasterConfigurationReference(java.lang.String pFileLocationOrCmd,
int pType)
MasterConfigurationReference. Either a file name or
operating system command can be specified.public java.io.InputStream readMasterConfiguration()
throws java.io.IOException
java.io.IOException - if reading the master configuration fails or executing the OS
command caused an exceptionpublic boolean isCommand()
true if the master configuration reference is an OS
command. Otherwise falsepublic java.lang.String getMasterConfigurationCommand()
null if the
reference is not a commandisCommand()public java.lang.String getMasterConfigurationLocation()
null if the reference a commandisCommand()Copyright © 2015 Micro Focus GmbH. All rights reserved.