EMPTY_ARRAY
Constructor and Description |
---|
URLFileImpl(IFileSystem fs,
URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
create() |
boolean |
delete() |
boolean |
exists()
Indicates whether this resource exists.
|
String |
getBaseName() |
String |
getExtension() |
IFileSystem |
getFileSystem()
The file system supporting this resource
|
String |
getName()
Gets this file's or directory's name.
|
IDirectory |
getParent()
Gets this file's our directory's parent directory.
|
ResourcePath |
getPath() |
boolean |
isChildOf(IDirectory dir)
Indicates whether this resource is a direct child of the given directory.
|
boolean |
isDescendantOf(IDirectory dir)
Indicates whether this resource is a descendant of the given directory.
|
boolean |
isInJar() |
boolean |
isJavaFile() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
OutputStream |
openOutputStreamForAppend() |
File |
toJavaFile() |
URI |
toURI() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIFile, getPhysicalFile
public URLFileImpl(IFileSystem fs, URL url)
public IFileSystem getFileSystem()
IResource
getFileSystem
in interface IResource
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 IDirectory getParent()
IResource
public String getName()
IResource
public boolean exists()
IResource
public boolean delete() throws IOException
delete
in interface IResource
IOException
public ResourcePath getPath()
public boolean isChildOf(IDirectory dir)
IResource
public boolean isDescendantOf(IDirectory dir)
IResource
isDescendantOf
in interface IResource
dir
- the directory which would be the ancestorpublic File toJavaFile()
toJavaFile
in interface IResource
public boolean isJavaFile()
isJavaFile
in interface IResource
Copyright © 2024. All rights reserved.