nl.captcha.util
Class FileUtil

java.lang.Object
  extended by nl.captcha.util.FileUtil

public class FileUtil
extends java.lang.Object


Constructor Summary
FileUtil()
           
 
Method Summary
static java.io.InputStream readResource(java.lang.String filename)
          Get a file resource and return it as an InputStream.
static Sample readSample(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

readResource

public static final java.io.InputStream readResource(java.lang.String filename)
Get a file resource and return it as an InputStream. Intended primarily to read in binary files which are contained in a jar.

Parameters:
filename -
Returns:
An @{link InputStream} to the file

readSample

public static final Sample readSample(java.lang.String filename)


Copyright © 2010-2011 James Childers. All Rights Reserved.