|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.tk.conn.echo.EchoJni
public class EchoJni
| Constructor Summary | |
|---|---|
EchoJni()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
void |
close()
Close the echo. |
protected void |
ensureOpen()
Ensure the echo is open. |
protected void |
finalize()
Close the port when no more references remain. |
java.lang.String |
getPortName()
Return the name of the echo. |
boolean |
isClosed()
Return true if the echo is closed, false if open. |
void |
open(java.lang.String portName)
Open the echo. |
int |
read(byte[] buffer,
int offset,
int length)
Read from the echo. |
java.lang.String |
toString()
Return a printable representation of this object. |
int |
write(byte[] buffer,
int offset,
int length)
Write to the echo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EchoJni()
| Method Detail |
|---|
public void close()
throws java.io.IOException
Close the echo. if an I/O error occurs.
java.io.IOException
protected void ensureOpen()
throws java.io.IOException
java.io.IOExceptionprotected void finalize()
finalize in class java.lang.Objectpublic java.lang.String getPortName()
String) value.public boolean isClosed()
boolean) value.
public void open(java.lang.String portName)
throws java.io.IOException
String) parameter.
portName - The port name (String) parameter.
java.io.IOException
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
byte[]) parameter.
The offset (int) parameter.
The length (int) parameter.
buffer - The buffer (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectString) value.
public int write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
byte[]) parameter.
The offset (int) parameter.
The length (int) parameter.
buffer - The buffer (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
java.io.IOException
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||