Package manifold.api.fs.def
Class JavaFileImpl
- java.lang.Object
-
- manifold.api.fs.def.JavaResourceImpl
-
- manifold.api.fs.def.JavaFileImpl
-
- All Implemented Interfaces:
Serializable,IFile,IResource
public class JavaFileImpl extends JavaResourceImpl implements IFile
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class manifold.api.fs.def.JavaResourceImpl
_file
-
Fields inherited from interface manifold.api.fs.IFile
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description JavaFileImpl(IFileSystem fs, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreate()booleanexists()Indicates whether this resource exists.StringgetBaseName()StringgetExtension()InputStreamopenInputStream()OutputStreamopenOutputStream()OutputStreamopenOutputStreamForAppend()-
Methods inherited from class manifold.api.fs.def.JavaResourceImpl
delete, equals, getFileSystem, 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 manifold.api.fs.IFile
getPhysicalFile
-
Methods inherited from interface manifold.api.fs.IResource
delete, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
-
-
-
-
Constructor Detail
-
JavaFileImpl
public JavaFileImpl(IFileSystem fs, File file)
-
-
Method Detail
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStreamin interfaceIFile- Throws:
IOException
-
openOutputStream
public OutputStream openOutputStream() throws IOException
- Specified by:
openOutputStreamin interfaceIFile- Throws:
IOException
-
openOutputStreamForAppend
public OutputStream openOutputStreamForAppend() throws IOException
- Specified by:
openOutputStreamForAppendin interfaceIFile- Throws:
IOException
-
getExtension
public String getExtension()
- Specified by:
getExtensionin interfaceIFile
-
getBaseName
public String getBaseName()
- Specified by:
getBaseNamein interfaceIFile
-
create
public boolean create()
- Specified by:
createin interfaceIResource- Overrides:
createin classJavaResourceImpl
-
-