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 TypeMethodDescriptionvoid
commit()
This method should be called after all data is written to theOutputStream
from thegetOutputStream()
method.getId()
Returns the id of blob object.Returns the content of the blob asInputStream
.Returns aOutputStream
to write content to the blob object.long
getSize()
Returns the size (in bytes) of the blob.
-
Method Details
-
commit
This method should be called after all data is written to theOutputStream
from 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 aOutputStream
to write content to the blob object. Note: after all data is written to theOutputStream
thecommit()
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
-