com.opensymphony.xwork2.util.classloader
Class FileResourceStore

java.lang.Object
  extended by com.opensymphony.xwork2.util.classloader.FileResourceStore
All Implemented Interfaces:
ResourceStore

public final class FileResourceStore
extends Object
implements ResourceStore

Reads a class from disk class taken from Apache JCI


Field Summary
private static Logger LOG
           
private  File root
           
 
Constructor Summary
FileResourceStore(File pFile)
           
 
Method Summary
private  void closeQuietly(InputStream is)
           
private  File getFile(String pResourceName)
           
 byte[] read(String pResourceName)
           
 String toString()
           
 void write(String pResourceName, byte[] pData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

root

private final File root
Constructor Detail

FileResourceStore

public FileResourceStore(File pFile)
Method Detail

read

public byte[] read(String pResourceName)
Specified by:
read in interface ResourceStore

write

public void write(String pResourceName,
                  byte[] pData)
Specified by:
write in interface ResourceStore

closeQuietly

private void closeQuietly(InputStream is)

getFile

private File getFile(String pResourceName)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.