Package si.inova.neatle.source
Interface InputSource
-
- All Known Subinterfaces:
AsyncInputSource
- All Known Implementing Classes:
ByteArrayInputSource
,CalllableInputSource
,StringInputSource
public interface InputSource
An input source that provides byte array data when writing to a BTLE device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes the stream source.byte[]
nextChunk()
Reads next "chunk" from this stream.void
open()
Opens the stream source.
-
-
-
Method Detail
-
open
void open() throws java.io.IOException
Opens the stream source.- Throws:
java.io.IOException
- if an IO error occurs
-
nextChunk
byte[] nextChunk() throws java.io.IOException
Reads next "chunk" from this stream.- Returns:
- the number of bytes read or null if there is nothing more to read.
- Throws:
java.io.IOException
- if an IO error occurs
-
close
void close() throws java.io.IOException
Closes the stream source.- Throws:
java.io.IOException
- if an IO error occurs
-
-