org.zkoss.zuss
Class FileLocator

java.lang.Object
  extended by org.zkoss.zuss.FileLocator
All Implemented Interfaces:
Locator

public class FileLocator
extends java.lang.Object
implements Locator

A file-based locator.

Author:
tomyeh

Constructor Summary
FileLocator(java.io.File dir, java.lang.String charset)
          Construct a file locator.
 
Method Summary
 java.io.Reader getResource(java.lang.String name)
          Returns the resource of the given name, or null if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLocator

public FileLocator(java.io.File dir,
                   java.lang.String charset)
Construct a file locator.

Parameters:
dir - the directory. If null, the current directory is assumed.
Method Detail

getResource

public java.io.Reader getResource(java.lang.String name)
                           throws java.io.IOException
Description copied from interface: Locator
Returns the resource of the given name, or null if not found.

Specified by:
getResource in interface Locator
Throws:
java.io.IOException


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.