public class JarInputReader extends StreamInputReader
Modifier and Type | Field and Description |
---|---|
protected java.net.URL |
inputURL
Where to go to hook up with a resource.
|
protected java.lang.String |
jarEntryName |
protected java.util.jar.JarFile |
jarFile |
protected java.lang.String |
jarFileName |
inputStream, inputStreamCount, name
Constructor and Description |
---|
JarInputReader(java.lang.String jarFilePath,
java.lang.String jarEntryName)
Create a JarInputReader win the path to a jar file, and the
entry name.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying file
|
void |
reopen()
Reset the InputStream to the beginning, by closing the current
connection and reopening it.
|
protected java.net.URL inputURL
protected java.util.jar.JarFile jarFile
protected java.lang.String jarFileName
protected java.lang.String jarEntryName
public JarInputReader(java.lang.String jarFilePath, java.lang.String jarEntryName) throws java.io.IOException
java.io.IOException
public void reopen() throws java.io.IOException
reopen
in class StreamInputReader
java.io.IOException
public void close() throws java.io.IOException
close
in interface InputReader
close
in class StreamInputReader
java.io.IOException
- Any IO errors encountered in accessing
the fileCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details