Package com.yworks.util.abstractjar
Interface StreamProvider
-
- All Known Implementing Classes:
DirectoryStreamProvider,JarStreamProvider
public interface StreamProviderThe interface Stream provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the stream provider.java.lang.StringgetCurrentDir()Gets current dir.EntrygetCurrentEntry()Gets current entry.java.lang.StringgetCurrentEntryName()Gets current entry name.java.lang.StringgetCurrentFilename()Gets current filename.java.io.DataInputStreamgetNextClassEntryStream()Gets next class entry stream.java.io.DataInputStreamgetNextResourceEntryStream()Gets next resource entry stream.voidreset()Resets the stream provider.
-
-
-
Method Detail
-
getNextClassEntryStream
java.io.DataInputStream getNextClassEntryStream() throws java.io.IOExceptionGets next class entry stream.- Returns:
- the next class entry stream
- Throws:
java.io.IOException- the io exception
-
getNextResourceEntryStream
java.io.DataInputStream getNextResourceEntryStream() throws java.io.IOExceptionGets next resource entry stream.- Returns:
- the next resource entry stream
- Throws:
java.io.IOException- the io exception
-
getCurrentEntry
Entry getCurrentEntry()
Gets current entry.- Returns:
- the current entry
-
getCurrentEntryName
java.lang.String getCurrentEntryName()
Gets current entry name.- Returns:
- the current entry name
-
getCurrentDir
java.lang.String getCurrentDir()
Gets current dir.- Returns:
- the current dir
-
getCurrentFilename
java.lang.String getCurrentFilename()
Gets current filename.- Returns:
- the current filename
-
reset
void reset()
Resets the stream provider.
-
close
void close() throws java.io.IOExceptionCloses the stream provider.- Throws:
java.io.IOException
-
-