com.opensymphony.xwork2.util.classloader
Class JarResourceStore
java.lang.Object
com.opensymphony.xwork2.util.classloader.JarResourceStore
- All Implemented Interfaces:
- ResourceStore
public class JarResourceStore
- extends java.lang.Object
- implements ResourceStore
Read resources from a jar file
Method Summary |
static long |
copy(java.io.InputStream input,
java.io.OutputStream output)
|
byte[] |
read(java.lang.String pResourceName)
|
void |
write(java.lang.String pResourceName,
byte[] pResourceData)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarResourceStore
public JarResourceStore(java.io.File file)
write
public void write(java.lang.String pResourceName,
byte[] pResourceData)
- Specified by:
write
in interface ResourceStore
read
public byte[] read(java.lang.String pResourceName)
- Specified by:
read
in interface ResourceStore
copy
public static long copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.