|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.aries.util.filesystem.impl.FileImpl
public class FileImpl
An implementation of IFile that represents a java.io.File.
| Field Summary | |
|---|---|
protected File |
file
This file in the file system |
protected String |
rootDir
The name of the root directory of the file system |
protected File |
rootDirFile
The root File in the file system |
| Constructor Summary | |
|---|---|
FileImpl(File f,
File rootFile)
|
|
| Method Summary | |
|---|---|
IDirectory |
convert()
|
IDirectory |
convertNested()
|
boolean |
equals(Object obj)
|
long |
getLastModified()
|
String |
getName()
|
IDirectory |
getParent()
|
IDirectory |
getRoot()
|
long |
getSize()
|
int |
hashCode()
|
boolean |
isDirectory()
|
boolean |
isFile()
|
InputStream |
open()
The input stream returned by this method should always be closed after use. |
String |
toString()
|
URL |
toURL()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String rootDir
protected File file
protected File rootDirFile
| Constructor Detail |
|---|
public FileImpl(File f,
File rootFile)
f - this file.rootFile - the root of the vFS.| Method Detail |
|---|
public IDirectory convert()
convert in interface IFilepublic long getLastModified()
getLastModified in interface IFilepublic String getName()
getName in interface IFilepublic IDirectory getParent()
getParent in interface IFilepublic long getSize()
getSize in interface IFilepublic boolean isDirectory()
isDirectory in interface IFilepublic boolean isFile()
isFile in interface IFile
public InputStream open()
throws IOException
IFile
open in interface IFileIOExceptionpublic IDirectory getRoot()
getRoot in interface IFile
public URL toURL()
throws MalformedURLException
toURL in interface IFileMalformedURLExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic IDirectory convertNested()
convertNested in interface IFile
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||