Class JarStreamProvider

  • All Implemented Interfaces:
    StreamProvider

    public class JarStreamProvider
    extends java.lang.Object
    implements StreamProvider
    The type Jar stream provider.
    • Constructor Detail

      • JarStreamProvider

        public JarStreamProvider​(java.io.File jarFile)
                          throws java.io.IOException
        Instantiates a new Jar stream provider.
        Parameters:
        jarFile - the jar file
        Throws:
        java.io.IOException - the io exception
    • Method Detail

      • getNextClassEntryStream

        public java.io.DataInputStream getNextClassEntryStream()
                                                        throws java.io.IOException
        Description copied from interface: StreamProvider
        Gets next class entry stream.
        Specified by:
        getNextClassEntryStream in interface StreamProvider
        Returns:
        the next class entry stream
        Throws:
        java.io.IOException - the io exception
      • getNextResourceEntryStream

        public java.io.DataInputStream getNextResourceEntryStream()
                                                           throws java.io.IOException
        Description copied from interface: StreamProvider
        Gets next resource entry stream.
        Specified by:
        getNextResourceEntryStream in interface StreamProvider
        Returns:
        the next resource entry stream
        Throws:
        java.io.IOException - the io exception
      • getCurrentEntryName

        public java.lang.String getCurrentEntryName()
        Description copied from interface: StreamProvider
        Gets current entry name.
        Specified by:
        getCurrentEntryName in interface StreamProvider
        Returns:
        the current entry name
      • getCurrentDir

        public java.lang.String getCurrentDir()
        Description copied from interface: StreamProvider
        Gets current dir.
        Specified by:
        getCurrentDir in interface StreamProvider
        Returns:
        the current dir
      • getCurrentFilename

        public java.lang.String getCurrentFilename()
        Description copied from interface: StreamProvider
        Gets current filename.
        Specified by:
        getCurrentFilename in interface StreamProvider
        Returns:
        the current filename
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: StreamProvider
        Closes the stream provider.
        Specified by:
        close in interface StreamProvider
        Throws:
        java.io.IOException