com.sewoo.port.android
Interface PortInterface

All Known Implementing Classes:
BluetoothPort, WiFiPort

public interface PortInterface

Port Interface.

Since:
1.051

Method Summary
 void connect(java.lang.String address)
          Connect the interface to the destination address.
 void disconnect()
          Disconnect the current connection.
 java.io.InputStream getInputStream()
          Get a InputStream.
 java.io.OutputStream getOutputStream()
          Get a OutputStream.
 boolean isConnected()
          Get a status that the interface were connected.
 

Method Detail

connect

void connect(java.lang.String address)
             throws java.io.IOException
Connect the interface to the destination address.

Parameters:
address -
Throws:
java.io.IOException

disconnect

void disconnect()
                throws java.io.IOException
Disconnect the current connection.

Throws:
java.io.IOException

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Get a InputStream.

Returns:
InputStream, null (if not connected.)
Throws:
java.io.IOException

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Get a OutputStream.

Returns:
OutputStream, null (if not connected.)
Throws:
java.io.IOException

isConnected

boolean isConnected()
Get a status that the interface were connected.

Returns:
Interface whether connected or not.