public enum IO extends Enum<IO>
| Modifier and Type | Method and Description |
|---|---|
static String |
relativize(File basedir,
File outputDir) |
static String |
relativize(String basedir,
String outputDir) |
static byte[] |
toByteArray(File file) |
static byte[] |
toByteArray(InputStream in) |
static File |
toLocation(File origin,
String link,
String message) |
static String |
toString(File file) |
static String |
toString(InputStream in) |
static String |
toString(InputStream in,
Charset set) |
static IO |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IO[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static File |
writeStringToFile(String data,
File file) |
public static IO[] values()
for (IO c : IO.values()) System.out.println(c);
public static IO 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 static String toString(File file) throws IOException
IOExceptionpublic static String toString(InputStream in) throws IOException
IOExceptionpublic static String toString(InputStream in, Charset set) throws IOException
IOExceptionpublic static byte[] toByteArray(File file) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream in) throws IOException
IOExceptionpublic static File writeStringToFile(String data, File file) throws FileNotFoundException
FileNotFoundExceptionpublic static File toLocation(File origin, String link, String message) throws InvalidInput
InvalidInputCopyright © 2019. All rights reserved.