|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sewoo.port.android.WiFiPort
public class WiFiPort
Wi-Fi interface.
Method Summary | |
---|---|
void |
connect(java.lang.String address)
Connect the interface to the destination address. |
void |
connect(java.lang.String address,
int port)
Connect the interface to the destination address. |
void |
disconnect()
Disconnect the current connection. |
java.io.InputStream |
getInputStream()
Get a InputStream. |
static WiFiPort |
getInstance()
Get a instance of WiFiPort class. |
java.io.OutputStream |
getOutputStream()
Get a OutputStream. |
boolean |
isConnected()
Get a status that the interface were connected. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WiFiPort getInstance()
public void connect(java.lang.String address, int port) throws java.io.IOException
address
- IP address.port
- Port Number.
java.io.IOException
public void connect(java.lang.String address) throws java.io.IOException
PortInterface
connect
in interface PortInterface
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
PortInterface
getInputStream
in interface PortInterface
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
PortInterface
getOutputStream
in interface PortInterface
java.io.IOException
public void disconnect() throws java.io.IOException
PortInterface
disconnect
in interface PortInterface
java.io.IOException
public boolean isConnected()
PortInterface
isConnected
in interface PortInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |