- java.lang.Object
-
- io.github.mmm.binary.StreamablePath
-
- All Implemented Interfaces:
Streamable
public class StreamablePath extends Object implements Streamable
Implementation ofStreamableforPath.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description StreamablePath(Path file)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamasStream()PathgetFile()voidsave(OutputStream out)
-
-
-
Constructor Detail
-
StreamablePath
public StreamablePath(Path file)
The constructor.- Parameters:
file- the file to adapt.
-
-
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.
-
-