public class FileSystemPayload extends GenericPayload
| Constructor and Description |
|---|
FileSystemPayload(String id,
File payloadFile) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getContentType, getId, getLabel, getType, hasMetaChanged, isLinked, setContentType, setId, setInputStream, setLabel, setLinked, setMetaChanged, setType, toStringpublic void readExistingMetadata()
public void writeMetadata()
public InputStream open() throws StorageException
open in interface Payloadopen in class GenericPayloadIOException - if there was an error reading the streamStorageExceptionpublic 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 GenericPayloadCopyright © 2009-2013. All Rights Reserved.