Package org.daisy.dotify.common.io
Class ByteArrayInputStreamMaker
- java.lang.Object
-
- org.daisy.dotify.common.io.ByteArrayInputStreamMaker
-
- All Implemented Interfaces:
InputStreamMaker
public class ByteArrayInputStreamMaker extends Object implements InputStreamMaker
Provides a in-memory input stream maker.
-
-
Constructor Summary
Constructors Constructor Description ByteArrayInputStreamMaker(byte[] buf)
Creates a new byte array input stream maker with the specified data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
newInputStream()
Returns a new input stream for the source.
-
-
-
Method Detail
-
newInputStream
public InputStream newInputStream() throws IOException
Description copied from interface:InputStreamMaker
Returns a new input stream for the source.- Specified by:
newInputStream
in interfaceInputStreamMaker
- Returns:
- a new input stream
- Throws:
IOException
- if an IO-problem occurs
-
-