org.zkoss.util.resource
Class ContentLoader

java.lang.Object
  extended by org.zkoss.util.resource.AbstractLoader
      extended by org.zkoss.util.resource.ContentLoader
All Implemented Interfaces:
Loader

public class ContentLoader
extends AbstractLoader

A Loader that loads the resource by use URL.getContent() if the source is URL, or loads into a String if the source is a File (and assumging UTF-8).

Author:
tomyeh

Constructor Summary
ContentLoader()
           
 
Method Summary
 java.lang.Object load(java.lang.Object src)
          Loads the resource.
 
Methods inherited from class org.zkoss.util.resource.AbstractLoader
getLastModified, shallCheck
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentLoader

public ContentLoader()
Method Detail

load

public java.lang.Object load(java.lang.Object src)
                      throws java.lang.Exception
Description copied from interface: Loader
Loads the resource.

Returns:
null if not found
Throws:
java.lang.Exception - you might throw any exception which will be passed back to the caller of ResourceCache.get(java.lang.Object)


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