jcolibri.util
Class FileIO

java.lang.Object
  extended by jcolibri.util.FileIO

public class FileIO
extends java.lang.Object

Utility functions to transparently access to files in the file system, jar file, classpath...

Version:
1.0
Author:
Juan A. Recio-Garcia

Constructor Summary
FileIO()
           
 
Method Summary
static java.net.URL findFile(java.lang.String file)
          Returns the URL that localizes a file.
static java.io.InputStream openFile(java.lang.String file)
          Tries to return an input stream of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileIO

public FileIO()
Method Detail

findFile

public static java.net.URL findFile(java.lang.String file)
Returns the URL that localizes a file. It tries the following locations:


openFile

public static java.io.InputStream openFile(java.lang.String file)
Tries to return an input stream of the file


GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es