Package org.jboss.vfs

Class VirtualJarFileInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class VirtualJarFileInputStream
    extends java.io.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      int read()
      • Methods inherited from class java.io.InputStream

        available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 of
        bufferLength - The length of put to use
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException