|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zipxap.vfs.dataobjects.AEntry
com.zipxap.vfs.Entry
public class Entry
An Entry is the underlying link between the file system and a VFSFile or VFSRepository.
| 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
| Constructor Summary | |
|---|---|
Entry()
|
|
Entry(LowLevelManager mgr,
VFSSector sector)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getData()
Retreive an InputStream that provides the data associated with this entry. |
byte[] |
getDataBytes()
Retrieve the data contained in this entry as a byte[]. |
long |
getDataLength()
|
VFSSector |
getHeaderSector()
This particular method can be confusing because it returns a header sector, and a header sector contains a data sector and an entry sector... |
java.io.OutputStream |
getOutputStream()
Retrieve an OutputStream to replace the data associated with this entry. |
void |
writeEntry()
Write the changes to this entry to disk. |
void |
writeEntry(byte[] data)
Update this entry and replace the content with the content contained in the specified byte[]. |
void |
writeEntry(java.io.File sourceFile)
Update this entry and replace the content with the content contained in the specified sourceFile. |
void |
writeEntry(java.io.InputStream is)
Replace the content of this entry with the content contained in the specified sourceFile. |
| Methods inherited from class com.zipxap.vfs.dataobjects.AEntry |
|---|
clone, equals, equals, equals, getCreated, getCreatedId, getLastModified, getLastModifiedId, getName, getOwnerId, getParentId, getType, getUniqueId, hashCode, setCreated, setCreatedId, setLastModified, setLastModifiedId, setName, setOwnerId, setParentId, setType, setUniqueId, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Entry()
public Entry(LowLevelManager mgr,
VFSSector sector)
| Method Detail |
|---|
public void writeEntry()
public byte[] getDataBytes()
public java.io.InputStream getData()
public long getDataLength()
public java.io.OutputStream getOutputStream()
public void writeEntry(java.io.File sourceFile)
public void writeEntry(byte[] data)
public void writeEntry(java.io.InputStream is)
public VFSSector getHeaderSector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||