- java.lang.Object
-
- io.github.mmm.binary.StreamableBlob
-
- All Implemented Interfaces:
Streamable
public class StreamableBlob extends Object implements Streamable
Implementation ofStreamable
forBlob
.- 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 InputStream
asStream()
Blob
getBlob()
void
save(OutputStream out)
-
-
-
Method Detail
-
save
public void save(OutputStream out)
- Specified by:
save
in interfaceStreamable
- Parameters:
out
- theOutputStream
towrite
the data to.
-
asStream
public InputStream asStream()
- Specified by:
asStream
in interfaceStreamable
- Returns:
- a new
InputStream
to read the underlying data.
-
-