public final class BootstrapperIOUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(Closeable closeable)
Unconditionally close a
Closeable . |
static long |
copyLarge(InputStream input,
OutputStream output)
Copy bytes from an
InputStream to an OutputStream . |
static long |
copyLarge(Reader input,
Writer output)
Copy chars from a
Reader to a Writer . |
static boolean |
deleteFileQuietly(File file)
Deletes a file (not a directory).
|
static String |
toString(Reader input)
Get the contents of a
Reader as a String. |
public static void closeQuietly(Closeable closeable)
Closeable
.public static String toString(Reader input) throws IOException
Reader
as a String.IOException
public static long copyLarge(InputStream input, OutputStream output) throws IOException
InputStream
to an OutputStream
.IOException
public static long copyLarge(Reader input, Writer output) throws IOException
Reader
to a Writer
.IOException
public static boolean deleteFileQuietly(File file)
Copyright © 2009-2012 SonarSource. All Rights Reserved.