public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(Closeable closeable)
Closes a stream and ignores any exceptions.
|
static void |
closeQuietly(ContentStream contentStream)
Closes the stream of a
ContentStream object and ignores any
exceptions. |
static void |
consumeAndClose(InputStream stream)
Consumes and closes the provided stream.
|
static void |
consumeAndClose(Reader reader)
Consumes and closes the provided reader.
|
public static void closeQuietly(Closeable closeable)
public static void closeQuietly(ContentStream contentStream)
ContentStream object and ignores any
exceptions.public static void consumeAndClose(InputStream stream)
public static void consumeAndClose(Reader reader)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.