public class FileSystemPayload
extends com.googlecode.fascinator.common.storage.impl.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
|
public void readExistingMetadata()
public void writeMetadata()
public InputStream open() throws com.googlecode.fascinator.api.storage.StorageException
open in interface com.googlecode.fascinator.api.storage.Payloadopen in class com.googlecode.fascinator.common.storage.impl.GenericPayloadIOException - if there was an error reading the streamcom.googlecode.fascinator.api.storage.StorageExceptionpublic void close()
throws com.googlecode.fascinator.api.storage.StorageException
close in interface com.googlecode.fascinator.api.storage.Payloadclose in class com.googlecode.fascinator.common.storage.impl.GenericPayloadcom.googlecode.fascinator.api.storage.StorageException - if there was an error closing the streampublic Long lastModified()
lastModified in interface com.googlecode.fascinator.api.storage.PayloadlastModified in class com.googlecode.fascinator.common.storage.impl.GenericPayloadpublic Long size()
size in interface com.googlecode.fascinator.api.storage.Payloadsize in class com.googlecode.fascinator.common.storage.impl.GenericPayloadCopyright © 2009-2016. All Rights Reserved.