package javax.obex;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* The <code>ObexTransport</code> interface defines the underlying transport
* connection which carries the OBEX protocol( such as TCP, RFCOMM device file
* exposed by Bluetooth or USB in kernel, RFCOMM socket emulated in Android
* platform, Irda). This interface provides an abstract layer to be used by the
* <code>ObexConnection</code>. Each kind of medium shall have its own
* implementation to wrap and follow the same interface.
* <P>
* See section 1.2.2 of IrDA Object Exchange Protocol specification.
* <P>
* Different kind of medium may have different construction - for example, the
* RFCOMM device file medium may be constructed from a file descriptor or simply
* a string while the TCP medium usually from a socket.
* @hide
*/
public interface ObexTransport {
void create() throws IOException;
void listen() throws IOException;
void close() throws IOException;
void connect() throws IOException;
void disconnect() throws IOException;
InputStream openInputStream() throws IOException;
OutputStream openOutputStream() throws IOException;
DataInputStream openDataInputStream() throws IOException;
DataOutputStream openDataOutputStream() throws IOException;
}