com.opensymphony.xwork2.util.classloader
Class JarResourceStore

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

public class JarResourceStore
extends Object
implements ResourceStore

Read resources from a jar file


Field Summary
private  File file
           
private static Logger LOG
           
 
Constructor Summary
JarResourceStore(File file)
           
 
Method Summary
private  void closeQuietly(InputStream is)
           
static long copy(InputStream input, OutputStream output)
           
 byte[] read(String pResourceName)
           
 void write(String pResourceName, byte[] pResourceData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

file

private final File file
Constructor Detail

JarResourceStore

public JarResourceStore(File file)
Method Detail

write

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

read

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

copy

public static long copy(InputStream input,
                        OutputStream output)
                 throws IOException
Throws:
IOException

closeQuietly

private void closeQuietly(InputStream is)


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