public abstract class Connection extends Object
| Constructor and Description |
|---|
Connection() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection
|
void |
connect()
Create and initialize a connection
|
abstract InputStream |
getInputStream()
Get a input stream for this connection
|
abstract OutputStream |
getOutputStream()
Get a output stream for this connection
|
abstract boolean |
isConnected() |
protected void |
reset()
Reset the connection fields
|
public abstract boolean isConnected()
public abstract InputStream getInputStream() throws IOException
IOExceptionpublic abstract OutputStream getOutputStream() throws IOException
IOExceptionprotected void reset()
public void close()
throws ProtocolException
ProtocolException
public void connect()
throws ProtocolException
ProtocolException