public enum FileFormat extends Enum<FileFormat>
| Enum Constant and Description |
|---|
CSV
CSV file format.
|
XML
XML file format.
|
ZIPPED_CSV
Zipped CSV format.
|
ZIPPED_XML
Zipped XML format.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final FileFormat XML
public static final FileFormat CSV
public static final FileFormat ZIPPED_XML
public static final FileFormat ZIPPED_CSV
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 nameNullPointerException - if the argument is nullpublic 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 inputInput instance able to process the inputSpecIOExceptionpublic 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 - IOExceptionUnsupportedOperationException - 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 outputOutput instance able to process the outputSpecIOExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.