|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.fascinator.common.storage.impl.GenericPayload
com.googlecode.fascinator.storage.filesystem.FileSystemPayload
public class FileSystemPayload
| Constructor Summary | |
|---|---|
FileSystemPayload(String id,
File payloadFile)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the input stream for this payload |
Long |
lastModified()
Return the timestamp when the payload was last modified |
InputStream |
open()
Gets the input stream to access the content for this payload |
void |
readExistingMetadata()
Read metadata from disk into memory if it exists |
Long |
size()
Return the size of the payload in byte |
void |
writeMetadata()
Write metadata to disk, calculating/retrieving if it is not known yet |
| Methods inherited from class com.googlecode.fascinator.common.storage.impl.GenericPayload |
|---|
getContentType, getId, getLabel, getType, hasMetaChanged, isLinked, setContentType, setId, setInputStream, setLabel, setLinked, setMetaChanged, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemPayload(String id,
File payloadFile)
| Method Detail |
|---|
public void readExistingMetadata()
public void writeMetadata()
public InputStream open()
throws StorageException
open in interface Payloadopen in class GenericPayloadIOException - if there was an error reading the stream
StorageException
public void close()
throws StorageException
close in interface Payloadclose in class GenericPayloadStorageException - if there was an error closing the streampublic Long lastModified()
lastModified in interface PayloadlastModified in class GenericPayloadpublic Long size()
size in interface Payloadsize in class GenericPayload
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||