Package manifold.api.fs
Interface IFile
-
- All Superinterfaces:
IResource
- All Known Subinterfaces:
IFileFragment
- All Known Implementing Classes:
FileFragmentImpl,JarEntryFileImpl,JavaFileImpl,URLFileImpl
public interface IFile extends IResource
-
-
Field Summary
Fields Modifier and Type Field Description static IFile[]EMPTY_ARRAY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetBaseName()StringgetExtension()static IFilegetIFile(IFileSystem fs, Path classFile)default IFilegetPhysicalFile()Facilitates virtual files e.g., IFileFragmentInputStreamopenInputStream()OutputStreamopenOutputStream()OutputStreamopenOutputStreamForAppend()-
Methods inherited from interface manifold.api.fs.IResource
create, delete, exists, getFileSystem, getName, getParent, getPath, isChildOf, isDescendantOf, isInJar, isJavaFile, toJavaFile, toURI
-
-
-
-
Field Detail
-
EMPTY_ARRAY
static final IFile[] EMPTY_ARRAY
-
-
Method Detail
-
getIFile
static IFile getIFile(IFileSystem fs, Path classFile)
-
openInputStream
InputStream openInputStream() throws IOException
- Throws:
IOException
-
openOutputStream
OutputStream openOutputStream() throws IOException
- Throws:
IOException
-
openOutputStreamForAppend
OutputStream openOutputStreamForAppend() throws IOException
- Throws:
IOException
-
getExtension
String getExtension()
-
getBaseName
String getBaseName()
-
getPhysicalFile
default IFile getPhysicalFile()
Facilitates virtual files e.g., IFileFragment
-
-