Package org.jboss.vfs
Class VirtualJarFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.jboss.vfs.VirtualJarFileInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
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
-
-
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()-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
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 IOException- Specified by:
readin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-