public class JavaFileImpl extends JavaResourceImpl implements IFile
_file
EMPTY_ARRAY
Constructor and Description |
---|
JavaFileImpl(IFileSystem fs,
File file) |
Modifier and Type | Method and Description |
---|---|
boolean |
create() |
boolean |
exists()
Indicates whether this resource exists.
|
String |
getBaseName() |
String |
getExtension() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
OutputStream |
openOutputStreamForAppend() |
delete, equals, getFileSystem, getName, getParent, getPath, hashCode, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toString, toURI
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIFile, getPhysicalFile
delete, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
public JavaFileImpl(IFileSystem fs, File file)
public InputStream openInputStream() throws IOException
openInputStream
in interface IFile
IOException
public OutputStream openOutputStream() throws IOException
openOutputStream
in interface IFile
IOException
public OutputStream openOutputStreamForAppend() throws IOException
openOutputStreamForAppend
in interface IFile
IOException
public String getExtension()
getExtension
in interface IFile
public String getBaseName()
getBaseName
in interface IFile
public boolean create()
create
in interface IResource
create
in class JavaResourceImpl
Copyright © 2024. All rights reserved.