org.jboss.vfs
Class VirtualJarFileInputStream
java.lang.Object
java.io.InputStream
org.jboss.vfs.VirtualJarFileInputStream
- All Implemented Interfaces:
- Closeable
public class VirtualJarFileInputStream
- extends InputStream
An input stream that can be used to wrap an VirtualJarInputStream (so any VFS dir)
and produce a byte stream following the Zip standard.
- Author:
- John Bailey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VirtualJarFileInputStream
public VirtualJarFileInputStream(VirtualJarInputStream virtualJarInputStream)
- Create with the minimum put length
- Parameters:
virtualJarInputStream
- The virtual jar input stream to base the stream off of
VirtualJarFileInputStream
public VirtualJarFileInputStream(VirtualJarInputStream virtualJarInputStream,
int bufferLength)
- Create with the a specified put size
- Parameters:
virtualJarInputStream
- The virtual jar input stream to base the stream off ofbufferLength
- The length of put to use
read
public int read()
throws IOException
-
- Specified by:
read
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
-
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
Copyright © 2012 JBoss, A division of Red Hat, Inc. All Rights Reserved.