Package gw.fs.url
Class URLFileImpl
java.lang.Object
gw.fs.url.URLFileImpl
HTTP-backed file. The only supported operation is to open stream.
-
Field Summary
FieldsFields inherited from interface gw.fs.IFile
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
create()
boolean
delete()
boolean
exists()
Indicates whether this resource exists.getName()
Gets this file's or directory's name.Gets this file's our directory's parent directory.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
toURI()
-
Field Details
-
_url
-
-
Constructor Details
-
URLFileImpl
-
-
Method Details
-
openInputStream
- Specified by:
openInputStream
in interfaceIFile
- Throws:
IOException
-
openOutputStream
- Specified by:
openOutputStream
in interfaceIFile
- Throws:
IOException
-
openOutputStreamForAppend
- Specified by:
openOutputStreamForAppend
in interfaceIFile
- Throws:
IOException
-
getExtension
- Specified by:
getExtension
in interfaceIFile
-
getBaseName
- Specified by:
getBaseName
in interfaceIFile
-
getParent
Description copied from interface:IResource
Gets this file's our directory's parent directory. -
getName
Description copied from interface:IResource
Gets this file's or directory's name. -
exists
public boolean exists()Description copied from interface:IResource
Indicates whether this resource exists. -
delete
- Specified by:
delete
in interfaceIResource
- Throws:
IOException
-
toURI
-
getPath
-
isChildOf
Description copied from interface:IResource
Indicates whether this resource is a direct child of the given directory. -
isDescendantOf
Description copied from interface:IResource
Indicates whether this resource is a descendant of the given directory.- Specified by:
isDescendantOf
in interfaceIResource
- Parameters:
dir
- the directory which would be the ancestor- Returns:
- true if this is a descendant of the given directory
-
toJavaFile
- Specified by:
toJavaFile
in interfaceIResource
-
isJavaFile
public boolean isJavaFile()- Specified by:
isJavaFile
in interfaceIResource
-
isInJar
public boolean isInJar() -
create
public boolean create()
-