IOUtil
Date: 2015-09-18

org.mockito.internal.util.io

## Class IOUtil

- java.lang.Object
- - org.mockito.internal.util.io.IOUtil

-     public class IOUtil
      extends java.lang.Object

  IO utils. A bit of reinventing the wheel but we don't want extra dependencies at this stage and we want to be java.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IOUtil()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `close(java.io.Closeable closeable)` Closes the target.
    `static void` | `closeQuietly(java.io.Closeable closeable)` Closes the target.
    `static java.util.Collection<java.lang.String>` | `readLines(java.io.InputStream is)`
    `static void` | `writeText(java.lang.String text, java.io.File output)` Writes text to file

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IOUtil

          public IOUtil()

  - ### Method Detail

    - #### writeText

          public static void writeText(java.lang.String text,
                       java.io.File output)

      Writes text to file

    - #### readLines

          public static java.util.Collection<java.lang.String> readLines(java.io.InputStream is)

    - #### closeQuietly

          public static void closeQuietly(java.io.Closeable closeable)

      Closes the target. Does nothing when target is null. Is silent.
      Parameters:
        `closeable` - the target, may be null

    - #### close

          public static void close(java.io.Closeable closeable)

      Closes the target. Does nothing when target is null. Is not silent and exceptions are rethrown.
      Parameters:
        `closeable` - the target, may be null