|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FileFormat>
org.rhq.helpers.perftest.support.FileFormat
public enum FileFormat
Represents a file format to export/import database data to/from.
| Enum Constant Summary | |
|---|---|
CSV
CSV file format. |
|
XML
XML file format. |
|
ZIPPED_CSV
Zipped CSV format. |
|
ZIPPED_XML
Zipped XML format. |
|
| Method Summary | |
|---|---|
abstract Input |
getInput(InputStreamProvider provider)
Returns an Input instance initialized with the specified
InputStreamProvider. |
abstract Input |
getInput(String inputSpec)
Returns an Input instance based on the input specification. |
abstract Output |
getOutput(String outputSpec)
Returns an Output instance based on the output specification. |
static FileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FileFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FileFormat XML
public static final FileFormat CSV
public static final FileFormat ZIPPED_XML
public static final FileFormat ZIPPED_CSV
| Method Detail |
|---|
public static FileFormat[] values()
for (FileFormat c : FileFormat.values()) System.out.println(c);
public static FileFormat valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract Input getInput(String inputSpec)
throws IOException
Input instance based on the input specification.
The format of the input specification is file format dependent.
inputSpec - the "location" of the input
Input instance able to process the inputSpec
IOException
public abstract Input getInput(InputStreamProvider provider)
throws IOException
Input instance initialized with the specified
InputStreamProvider. This enables more "low-level" usage than
the getInput(String) method which assumes that the inputSpec can
specify the input location without any other contextual information.
provider -
IOException
UnsupportedOperationException - if this file format doesn't support this type of initialization.
public abstract Output getOutput(String outputSpec)
throws IOException
Output instance based on the output specification.
The format of the output specification is file format dependent.
outputSpec - the "location" of the output
Output instance able to process the outputSpec
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||