public class SerialByteBuffer extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
SerialByteBuffer.SerialByteBufferInputStream |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SCALE_FACTOR |
static int |
DEFAULT_INITIAL_BUFFER_SIZE |
Constructor and Description |
---|
SerialByteBuffer() |
SerialByteBuffer(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
int |
capacity() |
void |
clear() |
InputStream |
getInputStream() |
int |
remaining() |
void |
write(byte[] data) |
void |
write(byte[] data,
int offset,
int length) |
public static int DEFAULT_BUFFER_SCALE_FACTOR
public static int DEFAULT_INITIAL_BUFFER_SIZE
public SerialByteBuffer()
public SerialByteBuffer(int initialCapacity)
public void clear()
public InputStream getInputStream()
public int capacity()
public int remaining()
public int available()
public void write(byte[] data) throws IOException, BufferOverflowException
IOException
BufferOverflowException
public void write(byte[] data, int offset, int length) throws IOException
IOException
Copyright © 2012–2019 Pi4J. All rights reserved.