Package org.jboss.vfs
Class VirtualJarFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.jboss.vfs.VirtualJarFileInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class VirtualJarFileInputStream extends java.io.InputStreamAn 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
-
-
Constructor Summary
Constructors Constructor Description VirtualJarFileInputStream(VirtualJarInputStream virtualJarInputStream)Create with the minimum put lengthVirtualJarFileInputStream(VirtualJarInputStream virtualJarInputStream, int bufferLength)Create with the a specified put size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
-