EMPTY_ARRAY| Constructor and Description |
|---|
URLFileImpl(URL url) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
create() |
boolean |
delete() |
boolean |
exists()
Indicates whether this resource exists.
|
String |
getBaseName() |
String |
getExtension() |
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() |
public URLFileImpl(URL url)
public InputStream openInputStream() throws IOException
openInputStream in interface IFileIOExceptionpublic OutputStream openOutputStream() throws IOException
openOutputStream in interface IFileIOExceptionpublic OutputStream openOutputStreamForAppend() throws IOException
openOutputStreamForAppend in interface IFileIOExceptionpublic String getExtension()
getExtension in interface IFilepublic String getBaseName()
getBaseName in interface IFilepublic IDirectory getParent()
IResourcepublic String getName()
IResourcepublic boolean exists()
IResourcepublic boolean delete()
throws IOException
delete in interface IResourceIOExceptionpublic ResourcePath getPath()
public boolean isChildOf(IDirectory dir)
IResourcepublic boolean isDescendantOf(IDirectory dir)
IResourceisDescendantOf in interface IResourcedir - the directory which would be the ancestorpublic File toJavaFile()
toJavaFile in interface IResourcepublic boolean isJavaFile()
isJavaFile in interface IResourceCopyright © 2017. All rights reserved.