Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
inputStream(java.io.InputStream is)
Return the appropriate input stream.
|
java.io.OutputStream |
outputStream(java.io.OutputStream os)
Return the appropriate output stream.
|
static FileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileType BZ2
public static final FileType GZ
public static final FileType JSON
public static final FileType XZ
public static FileType[] values()
for (FileType c : FileType.values()) System.out.println(c);
public static FileType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.io.InputStream inputStream(java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
public java.io.OutputStream outputStream(java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception