java.lang.Object
com.thebuzzmedia.exiftool.commons.io.IOs

public final class IOs extends Object
Static Input/Output Utilities.
  • Method Details

    • readInputStream

      public static void readInputStream(InputStream is, StreamVisitor visitor) throws IOException
      Read input and continue until StreamVisitor.readLine(String) returns false.
      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 of Closeable object (stream, reader, writer, etc.). If an IOException occurs during the close operation, then it is logged but it will not fail by throwing another exception.
      Parameters:
      closeable - Closeable instance.