public class BusConnection extends Object
| Constructor and Description |
|---|
BusConnection(Bus bus,
int address) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquireBus() |
int |
getAddress() |
Bus |
getBus() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
byte |
readByte() |
int |
readBytes(byte[] buffer) |
String |
readString() |
void |
writeByte(int b) |
void |
writeBytes(byte[] bytes) |
void |
writeString(String string) |
public BusConnection(Bus bus, int address)
public Bus getBus()
public int getAddress()
public void writeByte(int b)
throws IOException
IOExceptionpublic void writeBytes(byte[] bytes)
throws IOException
IOExceptionpublic void writeString(String string) throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic int readBytes(byte[] buffer)
throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionprotected void acquireBus()
throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionCopyright © 2015 silverspoon.io. All rights reserved.