|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dawb.common.util.io.IOUtils
public class IOUtils
Constructor Summary | |
---|---|
IOUtils()
|
Method Summary | |
---|---|
static void |
close(java.nio.channels.FileChannel channel,
java.lang.String msg)
Unconditionally close a ZipFile . |
static void |
close(java.io.InputStream input,
java.lang.String msg)
Unconditionally close an InputStream . |
static void |
close(java.io.OutputStream output,
java.lang.String msg)
Unconditionally close an OutputStream . |
static void |
close(java.io.Reader input,
java.lang.String msg)
Unconditionally close a Reader . |
static void |
close(java.io.Writer output,
java.lang.String msg)
Unconditionally close an Writer . |
static void |
close(java.util.zip.ZipFile input,
java.lang.String msg)
Unconditionally close a ZipFile . |
static java.lang.String |
fileInfo(java.io.File f)
return information about possible null file for use in diagnostic message |
static java.lang.String |
fileInfo(java.util.zip.ZipFile f)
return information about possible null file for use in diagnostic message |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOUtils()
Method Detail |
---|
public static void close(java.nio.channels.FileChannel channel, java.lang.String msg)
ZipFile
.
and optinally log errors
public static void close(java.util.zip.ZipFile input, java.lang.String msg)
ZipFile
.
and optinally log errors
input
- A (possibly null) Readerpublic static void close(java.io.Reader input, java.lang.String msg)
Reader
.
and optinally log errors
input
- A (possibly null) Readerpublic static void close(java.io.Writer output, java.lang.String msg)
Writer
.
and optinally log errors
output
- A (possibly null) Writerpublic static void close(java.io.OutputStream output, java.lang.String msg)
OutputStream
.
and optinally log errors
output
- A (possibly null) OutputStreampublic static void close(java.io.InputStream input, java.lang.String msg)
InputStream
.
and optinally log errors
input
- A (possibly null) InputStreampublic static java.lang.String fileInfo(java.io.File f)
public static java.lang.String fileInfo(java.util.zip.ZipFile f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |