|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.util.IOUtil
public class IOUtil
Utility class for manipulating streams.
Method Summary | |
---|---|
static void |
closeQuietly(InputStream in)
Closes an input stream and quietly ignores any exception. |
static void |
closeQuietly(OutputStream out)
Closes an output stream and quietly ignores any exception. |
static void |
closeQuietly(Reader in)
Closes an input stream and quietly ignores any exception. |
static void |
closeQuietly(Writer out)
Closes an output stream and quietly ignores any exception. |
static URL |
getResource(String resource)
Finds a resource on the classpath. |
static InputStream |
getResourceAsStream(String resource)
Loads a resource from the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void closeQuietly(Reader in)
in
- the stream to closepublic static void closeQuietly(Writer out)
out
- the stream to closepublic static void closeQuietly(InputStream in)
in
- the stream to closepublic static void closeQuietly(OutputStream out)
out
- the stream to closepublic static URL getResource(String resource)
resource
- the name of the resource to load
public static InputStream getResourceAsStream(String resource) throws IOException
resource
- the name of the resource to load
InputStream
to read the resource or null if the
resource was not found
IOException
- if an I/O error occurs
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |