public class SerialOutputStream
extends java.io.OutputStream
SerialPort
to provide
OutputStream
functionality.
SerialPort
instance. Do not create multiple streams for the
same serial port unless you implement your own
synchronization.Constructor and Description |
---|
SerialOutputStream(jssc.SerialPort sp)
Instantiates a SerialOutputStream for the given
SerialPort
Do not create multiple streams for the same serial port
unless you implement your own synchronization. |
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public SerialOutputStream(jssc.SerialPort sp)
SerialPort
Do not create multiple streams for the same serial port
unless you implement your own synchronization.sp
- The serial port to stream.public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
Copyright © 2019. All rights reserved.