Class BlobResourceOutputStream
java.lang.Object
java.io.OutputStream
internal.org.springframework.content.jpa.io.BlobResourceOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
PostgresBlobResourceOutputStream
-
Constructor Summary
ConstructorsConstructorDescriptionBlobResourceOutputStream(BlobResource blobResource, org.springframework.jdbc.core.JdbcTemplate template) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getBlob()protected BlobResourceprotected org.springframework.jdbc.core.JdbcTemplateprotected OutputStreamvoidwrite(int b) Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write, write
-
Constructor Details
-
BlobResourceOutputStream
public BlobResourceOutputStream(BlobResource blobResource, org.springframework.jdbc.core.JdbcTemplate template)
-
-
Method Details
-
getResource
-
getTemplate
protected org.springframework.jdbc.core.JdbcTemplate getTemplate() -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
initializeStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getBlob
-