Class IOs
- java.lang.Object
-
- com.thebuzzmedia.exiftool.commons.io.IOs
-
public final class IOs extends Object
Static Input/Output Utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeQuietly(Closeable closeable)
Close instance ofCloseable
object (stream, reader, writer, etc.).static void
readInputStream(InputStream is, StreamVisitor visitor)
Read input and continue untilStreamVisitor.readLine(String)
returnsfalse
.
-
-
-
Method Detail
-
readInputStream
public static void readInputStream(InputStream is, StreamVisitor visitor) throws IOException
Read input and continue untilStreamVisitor.readLine(String)
returnsfalse
.- Parameters:
is
- Input stream.visitor
- Result handler.- Throws:
IOException
- If an error occurred during read operation.
-
closeQuietly
public static void closeQuietly(Closeable closeable)
Close instance ofCloseable
object (stream, reader, writer, etc.). If anIOException
occurs during the close operation, then it is logged but it will not fail by throwing another exception.- Parameters:
closeable
- Closeable instance.
-
-