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)voidwriteDocument(String id, Formats.ProvFormat format, Document doc)
-
-
-
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) throws IOException
- Throws:
IOException
-
writeDocument
void writeDocument(String id, Formats.ProvFormat format, Document doc) throws IOException
- Throws:
IOException
-
delete
boolean delete(String storageId)
-
-