|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zipxap.vfs.VFSFile
public class VFSFile
This class represents the Virtual-File-System equivalent of a java.io.File. It is different from a java.io.File in that it is not capable of representing a directory. The VFSRepository is analogous to a java.io.File being used as a directory.
| Milestone | Who | Date, Time |
|---|---|---|
| Initial Version | K Penrose | June 2009 |
** Note that this table is not intended as an exhaustive list of subtle changes. It is intended to list changes that break the compatibility of older code, or major enhancements/rewrites
| Method Summary | |
|---|---|
boolean |
canExecute()
|
boolean |
canRead()
|
boolean |
canWrite()
|
int |
compareTo(VFSFile path)
|
long |
created()
|
boolean |
delete()
|
void |
extractFileToFileSystem(java.io.File fileSystemFile)
Extract the specified File from the archive file to the local filesystem. |
byte[] |
getContent()
|
java.lang.String |
getCreatedId()
Retrieve the User ID of the user who created this file. |
long |
getFreeSpace()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream()
|
java.lang.String |
getOwnerId()
|
java.lang.String |
getParent()
|
VFSRepository |
getParentRepository()
|
java.lang.String |
getPath()
|
long |
getTotalSpace()
|
Entry |
getUnderlyingEntry()
|
long |
getUsableSpace()
|
long |
lastModified()
|
long |
length()
|
void |
move(VFSRepository newParent)
Move this file to the specified parent repository. |
boolean |
rename(java.lang.String name)
Rename this file to the specified name. |
void |
setCreatedId(java.lang.String createdId)
|
void |
setLastModified(long time)
|
void |
setOwnerId(java.lang.String ownerId)
|
void |
setUnderlyingEntry(Entry entry)
|
void |
updateContent(byte[] content)
Replace the content of this file with the specified content. |
void |
updateContent(java.io.File fileSystemContent)
Replace the content of this file with the content of the file from the file system. |
void |
updateContent(java.io.InputStream inputStream)
Replace the content of this file with the content of the input stream. |
void |
updateContent(java.util.List<java.lang.Object> beansToSerialize)
This method performs bean serialization using the JavabeanSerializer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean canExecute()
public boolean canRead()
public boolean canWrite()
public int compareTo(VFSFile path)
public boolean delete()
public long getFreeSpace()
public java.lang.String getName()
public java.lang.String getParent()
public VFSRepository getParentRepository()
public java.lang.String getPath()
public long getTotalSpace()
public long getUsableSpace()
public long created()
public long lastModified()
public long length()
public boolean rename(java.lang.String name)
name -
true if this file was successfully renamed, else
false.public void move(VFSRepository newParent)
newParent - public void setLastModified(long time)
public Entry getUnderlyingEntry()
public void setUnderlyingEntry(Entry entry)
public byte[] getContent()
public java.io.OutputStream getOutputStream()
public java.io.InputStream getInputStream()
public void updateContent(java.util.List<java.lang.Object> beansToSerialize)
beansToSerialize - public void updateContent(byte[] content)
content - public void updateContent(java.io.File fileSystemContent)
fileSystemContent - public void updateContent(java.io.InputStream inputStream)
inputStream - public java.lang.String getCreatedId()
public void setCreatedId(java.lang.String createdId)
public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
public void extractFileToFileSystem(java.io.File fileSystemFile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||