Interface ResourceStorage
-
public interface ResourceStorage
-
-
Method Summary
Modifier and Type Method Description voidcopyInputStreamToStore(InputStream inputStream, Formats.ProvFormat format, String id)voidcopyStringToStore(CharSequence str, Formats.ProvFormat format, String id)booleandelete(String storageId)StringnewStore(Formats.ProvFormat format)DocumentreadDocument(String id)DocumentreadDocument(String id, boolean known)DocumentreadDocument(String id, boolean known, DateTimeOption dateTimeOption, TimeZone timeZone)voidwriteDocument(String id, Document doc, Formats.ProvFormat format)
-
-
-
Method Detail
-
newStore
String newStore(Formats.ProvFormat format) throws IOException
- Throws:
IOException
-
copyInputStreamToStore
void copyInputStreamToStore(InputStream inputStream, Formats.ProvFormat format, String id) throws IOException
- Throws:
IOException
-
copyStringToStore
void copyStringToStore(CharSequence str, Formats.ProvFormat format, String id) throws IOException
- Throws:
IOException
-
readDocument
Document readDocument(String id, boolean known) throws IOException
- Throws:
IOException
-
readDocument
Document readDocument(String id, boolean known, DateTimeOption dateTimeOption, TimeZone timeZone) throws IOException
- Throws:
IOException
-
readDocument
Document readDocument(String id) throws IOException
- Throws:
IOException
-
writeDocument
void writeDocument(String id, Document doc, Formats.ProvFormat format)
-
delete
boolean delete(String storageId)
-
-