- java.lang.Object
-
- io.github.mmm.binary.StreamableBlob
-
- All Implemented Interfaces:
Streamable
public class StreamableBlob extends Object implements Streamable
Implementation ofStreamableforBlob.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description StreamableBlob(Blob blob)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamasStream()BlobgetBlob()voidsave(OutputStream out)
-
-
-
Method Detail
-
save
public void save(OutputStream out)
- Specified by:
savein interfaceStreamable- Parameters:
out- theOutputStreamtowritethe data to.
-
asStream
public InputStream asStream()
- Specified by:
asStreamin interfaceStreamable- Returns:
- a new
InputStreamto read the underlying data.
-
-