Package gw.internal.gosu.module.fs
Class JavaFileImpl
- java.lang.Object
-
- gw.internal.gosu.module.fs.JavaResourceImpl
-
- gw.internal.gosu.module.fs.JavaFileImpl
-
- All Implemented Interfaces:
IFile
,IResource
,Serializable
public class JavaFileImpl extends JavaResourceImpl implements IFile
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class gw.internal.gosu.module.fs.JavaResourceImpl
_file
-
Fields inherited from interface gw.fs.IFile
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description JavaFileImpl(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
create()
boolean
exists()
Indicates whether this resource exists.String
getBaseName()
String
getExtension()
InputStream
openInputStream()
OutputStream
openOutputStream()
OutputStream
openOutputStreamForAppend()
-
Methods inherited from class gw.internal.gosu.module.fs.JavaResourceImpl
delete, equals, getName, getParent, getPath, hashCode, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toString, toURI
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.fs.IResource
delete, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
-
-
-
-
Constructor Detail
-
JavaFileImpl
public JavaFileImpl(File file)
-
-
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
-
create
public boolean create()
- Specified by:
create
in interfaceIResource
- Overrides:
create
in classJavaResourceImpl
-
-