public class FileBasedStoreObjectAccessor extends java.lang.Object implements PersistenceObjectStore.StoreObjectAccessor
StoreObjectAccessorLocking
if multiple threads may be accessing this.Constructor and Description |
---|
FileBasedStoreObjectAccessor(java.io.File file,
java.lang.String tmpExtension) |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String val) |
void |
delete() |
boolean |
exists() |
java.lang.String |
get()
gets the object, or null if not found
|
byte[] |
getBytes() |
java.util.Date |
getLastModifiedDate()
last modified date, null if not supported or does not exist
|
void |
put(java.lang.String val) |
java.lang.String |
toString() |
public FileBasedStoreObjectAccessor(java.io.File file, java.lang.String tmpExtension)
public java.lang.String get()
PersistenceObjectStore.StoreObjectAccessor
get
in interface PersistenceObjectStore.StoreObjectAccessor
public byte[] getBytes()
getBytes
in interface PersistenceObjectStore.StoreObjectAccessor
public boolean exists()
exists
in interface PersistenceObjectStore.StoreObjectAccessor
public void put(java.lang.String val)
put
in interface PersistenceObjectStore.StoreObjectAccessor
public void append(java.lang.String val)
append
in interface PersistenceObjectStore.StoreObjectAccessor
public void delete()
delete
in interface PersistenceObjectStore.StoreObjectAccessor
public java.util.Date getLastModifiedDate()
PersistenceObjectStore.StoreObjectAccessor
getLastModifiedDate
in interface PersistenceObjectStore.StoreObjectAccessor
public java.lang.String toString()
toString
in class java.lang.Object