Package gw.fs.jar
Class JarEntryFileImpl
- java.lang.Object
-
- gw.fs.jar.JarEntryResourceImpl
-
- gw.fs.jar.JarEntryFileImpl
-
public class JarEntryFileImpl extends JarEntryResourceImpl implements IFile
-
-
Field Summary
-
Fields inherited from class gw.fs.jar.JarEntryResourceImpl
_entry, _jarFile, _name, _parent
-
Fields inherited from interface gw.fs.IFile
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description JarEntryFileImpl(String name, IJarFileDirectory parent, JarFileDirectoryImpl jarFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
create()
String
getBaseName()
String
getExtension()
boolean
isInJar()
InputStream
openInputStream()
OutputStream
openOutputStream()
OutputStream
openOutputStreamForAppend()
-
Methods inherited from class gw.fs.jar.JarEntryResourceImpl
delete, equals, exists, getName, getParent, getPath, isChildOf, isDescendantOf, isJavaFile, setEntry, setExists, toJavaFile, toString, toURI
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.fs.IResource
delete, exists, getName, getParent, getPath, isChildOf, isDescendantOf, isJavaFile, toJavaFile, toURI
-
-
-
-
Constructor Detail
-
JarEntryFileImpl
public JarEntryFileImpl(String name, IJarFileDirectory parent, JarFileDirectoryImpl jarFile)
-
-
Method Detail
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStream
in interfaceIFile
- Throws:
IOException
-
openOutputStream
public OutputStream openOutputStream() throws IOException
- Specified by:
openOutputStream
in interfaceIFile
- Throws:
IOException
-
openOutputStreamForAppend
public OutputStream openOutputStreamForAppend() throws IOException
- Specified by:
openOutputStreamForAppend
in interfaceIFile
- Throws:
IOException
-
getExtension
public String getExtension()
- Specified by:
getExtension
in interfaceIFile
-
getBaseName
public String getBaseName()
- Specified by:
getBaseName
in interfaceIFile
-
isInJar
public boolean isInJar()
- Specified by:
isInJar
in interfaceIResource
- Overrides:
isInJar
in classJarEntryResourceImpl
-
create
public boolean create()
- Specified by:
create
in interfaceIResource
- Overrides:
create
in classJarEntryResourceImpl
-
-