morfologik.util
Class FileUtils

java.lang.Object
  extended by morfologik.util.FileUtils

public final class FileUtils
extends java.lang.Object

Utility functions.


Method Summary
static void assertExists(java.io.File fsaFile, boolean requireFile, boolean requireDirectory)
          Checks if the given file exists.
static void close(java.io.Closeable... closeables)
          Force any non-null closeables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertExists

public static void assertExists(java.io.File fsaFile,
                                boolean requireFile,
                                boolean requireDirectory)
                         throws java.io.IOException
Checks if the given file exists.

Throws:
java.io.IOException

close

public static void close(java.io.Closeable... closeables)
Force any non-null closeables.