|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FileResource represents and provides a manipulation interface to Xindice's abstracted FileManager.
Method Summary | |
void |
copyStreamTo(java.io.OutputStream os)
copyStreamTo copies the data of this FileResource to the specified OutputStream. |
boolean |
delete()
delete deletes the file specified by this object. |
boolean |
exists()
exists tests if this File exists |
java.lang.String |
getAbsolutePath()
getAbsolutePath returns the absolute pathname of the file represented by this object. |
java.io.OutputStream |
getAppendStream()
getAppendStream returns an OutputStream for appending to the FileResource. |
java.lang.String |
getCanonicalPath()
getCanonicalPath Returns the canonical form of this File object's pathname. |
FileResource[] |
getChildren()
getChildren returns a list of the files in the directory specified by this FileResource. |
java.io.InputStream |
getInputStream()
getInputStream returns an InputStream for reading the FileResource. |
java.lang.String |
getName()
getName returns the name of the file represented by this object. |
java.io.OutputStream |
getOutputStream()
getOutputStream returns an OutputStream for overwriting the FileResource. |
java.lang.String |
getPath()
getPath returns the pathname of the file represented by this object. |
boolean |
isDirectory()
isDirectory tests if the file represented by this FileResource is a directory. |
boolean |
isFile()
isFile tests if the file represented by this FileResource is a "normal" file. |
long |
lastModified()
lastModified Returns the time that the file represented by this FileResource was last modified. |
long |
length()
length returns the length of the file represented by this File object. |
boolean |
mkdir()
mkdir creates a directory whose pathname is specified by this FileResource. |
boolean |
mkdirs()
mkdirs creates a directory whose pathname is specified by this FileResource, including any necessary parent directories. |
boolean |
move(java.lang.String filename)
move moves the file specified by this FileResource to the pathname given by the filename argument. |
boolean |
rename(java.lang.String filename)
rename renames the file specified by this FileResource to have the pathname given by the filename argument. |
Method Detail |
public java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()
public java.io.OutputStream getAppendStream()
public void copyStreamTo(java.io.OutputStream os) throws java.io.IOException
os
- the OutputStreampublic boolean move(java.lang.String filename)
filename
- the new filenamepublic boolean rename(java.lang.String filename)
filename
- the new filenamepublic FileResource[] getChildren()
public java.lang.String getName()
public java.lang.String getPath()
public java.lang.String getAbsolutePath()
public java.lang.String getCanonicalPath() throws java.io.IOException
java.io.IOException
- If an I/O error occurspublic boolean exists()
public boolean isFile()
public boolean isDirectory()
public long lastModified()
public long length()
public boolean mkdir()
public boolean mkdirs()
public boolean delete()
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |