Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.util.io
Class IOUtils

java.lang.Object
  extended by eu.esdihumboldt.util.io.IOUtils

public final class IOUtils
extends Object

Helper class for IO

Author:
Kai Schwierczek

Method Summary
static boolean testStream(URI uri, boolean allowResource)
          Tests whether a InputStream to the given URI can be opened.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

testStream

public static boolean testStream(URI uri,
                                 boolean allowResource)
Tests whether a InputStream to the given URI can be opened.
In case of a file it instead tests File.isFile and File.canRead() because it is a lot faster.

Parameters:
uri - the URI to test
allowResource - allow resolving through Resources
Returns:
true, if a InputStream to the URI could be opened.

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d