|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.armatiek.infofuze.stream.filesystem.AbstractFile
com.armatiek.infofuze.stream.filesystem.compression.ArchiveFile
public abstract class ArchiveFile
An abstract representation of a archive file.
| Constructor Summary | |
|---|---|
ArchiveFile(FileIf file)
|
|
| Method Summary | |
|---|---|
boolean |
canRead()
Tests whether the application can read the file. |
boolean |
exists()
Tests whether the file or directory exists. |
java.io.InputStream |
getInputStream()
Returns the contents of the file as a byte stream. |
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. |
| Methods inherited from class com.armatiek.infofuze.stream.filesystem.AbstractFile |
|---|
getCharacterEncoding, getMimeType, listFiles |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.armatiek.infofuze.stream.filesystem.FileIf |
|---|
equals |
| Constructor Detail |
|---|
public ArchiveFile(FileIf file)
| Method Detail |
|---|
public boolean canRead()
FileIf
canRead in interface FileIfcanRead in class AbstractFilepublic boolean exists()
FileIf
exists in interface FileIfexists in class AbstractFile
public java.io.InputStream getInputStream()
throws java.io.IOException
FileIf
java.io.IOExceptionpublic java.lang.String getName()
FileIf
public java.lang.String getParent()
FileIf
public FileIf getParentFile()
FileIf
public java.lang.String getPath()
FileIf
public boolean hasContent()
FileIf
hasContent in interface FileIfhasContent in class AbstractFilepublic boolean isDirectory()
FileIf
public boolean isFile()
FileIf
public boolean isHidden()
FileIf
isHidden in interface FileIfisHidden in class AbstractFilepublic long lastModified()
FileIf
public long length()
FileIf
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||