| Constructor and Description |
|---|
BusDevice(BusConnection connection) |
BusDevice(Bus bus,
int address) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getAlias() |
BusConnection |
getBusConnection() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
boolean |
isOpen() |
void |
open() |
byte |
readByte() |
int |
readBytes(byte[] buffer) |
String |
readString() |
void |
setAlias(String alias) |
void |
setName(String name) |
void |
writeByte(int b) |
void |
writeBytes(byte[] bytes) |
void |
writeString(String string) |
public BusDevice(BusConnection connection)
public BusDevice(Bus bus, int address)
public void writeByte(int b)
throws IOException
writeByte in interface IOPortIOExceptionpublic void writeBytes(byte[] bytes)
throws IOException
writeBytes in interface IOPortIOExceptionpublic void writeString(String string) throws IOException
writeString in interface IOPortIOExceptionpublic byte readByte()
throws IOException
readByte in interface IOPortIOExceptionpublic int readBytes(byte[] buffer)
throws IOException
readBytes in interface IOPortIOExceptionpublic String readString() throws IOException
readString in interface IOPortIOExceptionpublic BusConnection getBusConnection()
public void setName(String name)
public void open()
throws IOException
open in interface IOPortIOExceptionpublic void close()
throws IOException
close in interface IOPortIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface IOPortIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface IOPortIOExceptionCopyright © 2015 silverspoon.io. All rights reserved.