Class UARTOutputStream
- java.lang.Object
- 
- java.io.OutputStream
- 
- org.deepjava.runtime.zynq7000.driver.UARTOutputStream
 
 
- 
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable,- Modified
 - Direct Known Subclasses:
- FlinkUARTOutputStream
 
 public class UARTOutputStream extends OutputStream Stream to write bytes to a UART interface. Don't forget to initialize the interface before using this stream.
- 
- 
Constructor SummaryConstructors Constructor Description UARTOutputStream(UART uart)Creates an output stream on a given UART interface.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] buffer)Equivalent towrite(buffer, 0, buffer.length).voidwrite(byte[] buffer, int off, int count)Writescountbytes from the byte arraybufferstarting at positionoffsetto this stream.voidwrite(int b)Writes a single byte to this stream.- 
Methods inherited from class java.io.OutputStreamclose, flush
 
- 
 
- 
- 
- 
Constructor Detail- 
UARTOutputStreampublic UARTOutputStream(UART uart) Creates an output stream on a given UART interface.- Parameters:
- uart- UART number.
 
 
- 
 - 
Method Detail- 
writepublic void write(int b) Writes a single byte to this stream. Only the least significant byte of the integerbis written to the stream.- Specified by:
- writein class- OutputStream
- Parameters:
- b- the byte to be written.
 
 - 
writepublic void write(byte[] buffer) Equivalent towrite(buffer, 0, buffer.length).- Overrides:
- writein class- OutputStream
- Parameters:
- buffer- the buffer to be written.
 
 - 
writepublic void write(byte[] buffer, int off, int count)Writescountbytes from the byte arraybufferstarting at positionoffsetto this stream.- Overrides:
- writein class- OutputStream
- Parameters:
- buffer- the buffer to be written.
- off- the start position in- bufferfrom where to get bytes.
- count- the number of bytes from- bufferto write to this stream.
 
 
- 
 
-