|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citizen.port.android.WiFiPort
public class WiFiPort
Wi-Fi interface. Wi-Fi TimeOut ½Ã ASB Mode »ç¿ë ºÒ°¡´É.
Constructor Summary | |
---|---|
WiFiPort()
Deprecated. Don't use directly. |
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()
Deprecated. |
static WiFiPort |
getInstance()
Get a instance of WiFiPort class. |
java.io.OutputStream |
getOutputStream()
Deprecated. |
boolean |
isConnected()
Get a status that the interface were connected. |
WiFiPortConnection |
open(java.lang.String address)
|
WiFiPortConnection |
open(java.lang.String address,
int port)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WiFiPort()
Method Detail |
---|
public static WiFiPort getInstance()
public WiFiPortConnection open(java.lang.String address) throws java.io.IOException
java.io.IOException
public WiFiPortConnection open(java.lang.String address, int port) throws java.io.IOException
java.io.IOException
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, java.lang.InterruptedException
PortInterface
disconnect
in interface PortInterface
java.io.IOException
java.lang.InterruptedException
public boolean isConnected()
PortInterface
isConnected
in interface PortInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |