|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileIf
Interface that must be implemented by all Infofuze file classes.
Method Summary | |
---|---|
boolean |
canRead()
Tests whether the application can read the file. |
boolean |
equals(java.lang.Object obj)
Tests this file for equality with the given object. |
boolean |
exists()
Tests whether the file or directory exists. |
java.lang.String |
getCharacterEncoding()
Returns the name of the character encoding (MIME charset) of the character contents of this file. |
java.io.InputStream |
getInputStream()
Returns the contents of the file as a byte stream. |
java.lang.String |
getMimeType()
Returns the mime type/content type of the contents of the file. |
java.lang.String |
getName()
Returns the name of the file. |
java.lang.String |
getParent()
Returns the path of the parent of the file. |
FileIf |
getParentFile()
Returns the parent of the file. |
java.lang.String |
getPath()
Returns the path of the file. |
boolean |
hasContent()
Tests whether this file has content. |
boolean |
isDirectory()
Tests whether the file denoted by this abstract pathname is a directory. |
boolean |
isFile()
Tests whether this file is a normal file. |
boolean |
isHidden()
Tests whether this is a hidden file. |
long |
lastModified()
Returns the time that this file was last modified. |
long |
length()
Returns the length of this file. |
java.util.Iterator<FileIf> |
listFiles()
Returns an iterator of files and directories in the directory denoted by this file. |
Method Detail |
---|
boolean canRead()
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to be compared with this file
boolean exists()
java.lang.String getCharacterEncoding()
java.lang.String getMimeType()
java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
java.lang.String getName()
java.lang.String getParent()
FileIf getParentFile()
java.lang.String getPath()
boolean hasContent()
boolean isDirectory()
boolean isFile()
boolean isHidden()
long lastModified()
long length()
java.util.Iterator<FileIf> listFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |