org.jboss.ejb3.protocol.jarjar
Class JarJarInputStream
java.lang.Object
java.io.InputStream
org.jboss.ejb3.protocol.jarjar.JarJarInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class JarJarInputStream
- extends java.io.InputStream
Provide an input stream in jar format which is build up
using a subset of a jar file.
|
Constructor Summary |
protected |
JarJarInputStream(java.util.jar.JarFile jarFile,
java.util.jar.JarEntry rootEntry)
|
|
Method Summary |
void |
close()
|
protected void |
copy(java.io.InputStream in,
java.io.OutputStream out,
long size)
|
protected java.util.jar.JarEntry |
createEntry(java.util.jar.JarEntry rootEntry,
java.util.jar.JarEntry template)
|
protected boolean |
isRelativeTo(java.util.jar.JarEntry rootEntry,
java.util.jar.JarEntry current)
|
int |
read()
|
| Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarJarInputStream
protected JarJarInputStream(java.util.jar.JarFile jarFile,
java.util.jar.JarEntry rootEntry)
throws java.io.IOException
- Parameters:
jarFile - the jar file to read fromrootEntry - the root entry at which the new jar file starts
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Overrides:
close in class java.io.InputStream
- Throws:
java.io.IOException
copy
protected void copy(java.io.InputStream in,
java.io.OutputStream out,
long size)
throws java.io.IOException
- Throws:
java.io.IOException
createEntry
protected java.util.jar.JarEntry createEntry(java.util.jar.JarEntry rootEntry,
java.util.jar.JarEntry template)
isRelativeTo
protected boolean isRelativeTo(java.util.jar.JarEntry rootEntry,
java.util.jar.JarEntry current)
read
public int read()
throws java.io.IOException
- Specified by:
read in class java.io.InputStream
- Throws:
java.io.IOException