com.ccg.net
Interface Connection


public interface Connection

Not ready for prime time - please ignore for now.

 class Example {
   public void main(String[] args) {
     com.ccg.net.Connection o = new com.ccg.net.Connection();
          System.out.println(o);
   }
 }
 

Since:
1.0
Version:
$Revision: 1.3 $
Author:
$Author: pkb $
See Also:
Connector

Method Summary
 InputStream getInputStream()
          Get the InputStream for the method (if one exists).
 OutputStream getOutputStream()
          Get the InputStream for the method (if one exists).
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws NotSupported,
                                  MissingProperties,
                                  ConnectionFailed
Get the InputStream for the method (if one exists).

Returns:
InputStream object to read data from remote connection (might be UDP, file, TCP, etc - you just don't know).
Throws:
NotSupported - If this Connection object doesn't support reading of data from other end of connection.
MissingProperties - If we don't have enough information to establish the connection.
ConnectionFailed - If we are unable to connect to the source of our data (for example, maybe a TCP server isn't responding).
Since:
1.0
See Also:
getOutputStream()

getOutputStream

OutputStream getOutputStream()
                             throws NotSupported,
                                    MissingProperties,
                                    ConnectionFailed
Get the InputStream for the method (if one exists).

Returns:
OutputStream object to write data to remote connection (might be UDP, file, TCP, etc - you just don't know).
Throws:
NotSupported - If this Connection object doesn't support writing of data from other end of connection.
MissingProperties - If we don't have enough information to establish the connection.
ConnectionFailed - If we are unable to connect to the source of our data (for example, maybe a TCP server isn't responding).
Since:
1.0
See Also:
getInputStream()


Copyright 1998-1998-2006 null. All Rights Reserved.