Package sonia.scm.store
Interface Blob
public interface Blob
A blob is binary object. A blob can be used to store any unstructured data.
- Since:
- 1.23
-
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()This method should be called after all data is written to theOutputStreamfrom thegetOutputStream()method.getId()Returns the id of blob object.Returns the content of the blob asInputStream.Returns aOutputStreamto write content to the blob object.longgetSize()Returns the size (in bytes) of the blob.
-
Method Details
-
commit
This method should be called after all data is written to theOutputStreamfrom thegetOutputStream()method.- Throws:
IOException
-
getId
String getId()Returns the id of blob object.- Returns:
- id of the blob
-
getInputStream
Returns the content of the blob asInputStream.- Returns:
- content of the blob
- Throws:
IOException
-
getOutputStream
Returns aOutputStreamto write content to the blob object. Note: after all data is written to theOutputStreamthecommit()method have to be called.- Returns:
- outputstream for blob write operations
- Throws:
IOException
-
getSize
long getSize()Returns the size (in bytes) of the blob.- Since:
- 1.54
-