org.sonar.batch.bootstrapper
Class BootstrapperIOUtils

java.lang.Object
  extended by org.sonar.batch.bootstrapper.BootstrapperIOUtils

public final class BootstrapperIOUtils
extends Object


Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

closeQuietly

public static void closeQuietly(Closeable closeable)
Unconditionally close a Closeable.


toString

public static String toString(Reader input)
                       throws IOException
Get the contents of a Reader as a String.

Throws:
IOException

copyLarge

public static long copyLarge(InputStream input,
                             OutputStream output)
                      throws IOException
Copy bytes from an InputStream to an OutputStream.

Throws:
IOException

copyLarge

public static long copyLarge(Reader input,
                             Writer output)
                      throws IOException
Copy chars from a Reader to a Writer.

Throws:
IOException

deleteFileQuietly

public static boolean deleteFileQuietly(File file)
Deletes a file (not a directory).



Copyright © 2009-2012 SonarSource. All Rights Reserved.