Package com.pi4j.io.serial.impl
Class SerialByteBuffer.SerialByteBufferInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.pi4j.io.serial.impl.SerialByteBuffer.SerialByteBufferInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- SerialByteBuffer
protected class SerialByteBuffer.SerialByteBufferInputStream extends InputStream
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SerialByteBufferInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
int
read()
int
read(byte[] data)
int
read(byte[] data, int off, int len)
long
skip(long n)
-
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Method Detail
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] data) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] data, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException, IllegalArgumentException
- Overrides:
skip
in classInputStream
- Throws:
IOException
IllegalArgumentException
-
-