public SerialInputStream(UsbSerialInterface localdevice) { this.device = localdevice; this.buffer = new byte[maxBufferSize]; this.pointer = 0; this.bufferSize = -1; }
public SerialInputStream(UsbSerialInterface device, int maxBufferSize) { this.device = device; this.maxBufferSize = maxBufferSize; this.buffer = new byte[this.maxBufferSize]; this.pointer = 0; this.bufferSize = -1; }
public SerialOutputStream(UsbSerialInterface device) { this.device = device; }