public interface IOPort
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getAlias() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
boolean |
isOpen() |
void |
open() |
byte |
readByte() |
int |
readBytes(byte[] buffer) |
String |
readString() |
void |
setAlias(String alias) |
void |
writeByte(int b) |
void |
writeBytes(byte[] bytes) |
void |
writeString(String string) |
String getName()
String getAlias()
void setAlias(String alias)
void open()
throws IOException
IOExceptionboolean isOpen()
void close()
throws IOException
IOExceptionvoid writeByte(int b)
throws IOException
IOExceptionvoid writeBytes(byte[] bytes)
throws IOException
IOExceptionvoid writeString(String string) throws IOException
IOExceptionbyte readByte()
throws IOException
IOExceptionint readBytes(byte[] buffer)
throws IOException
IOExceptionString readString() throws IOException
IOExceptionOutputStream getOutputStream() throws IOException
IOExceptionInputStream getInputStream() throws IOException
IOExceptionCopyright © 2015 silverspoon.io. All rights reserved.