allensoft.javacvs.client
Class ExternalProcessServerConnection

java.lang.Object
  |
  +--allensoft.javacvs.client.CVSConnection
        |
        +--allensoft.javacvs.client.ExternalProcessServerConnection

public class ExternalProcessServerConnection
extends CVSConnection

Defines a server connection to the local machine. This is done by executiong the server on the local machine and redirecting the input and output of the server.


Constructor Summary
ExternalProcessServerConnection(CVSClient client, RepositoryLocation location, java.lang.String sServerCommand)
          Creates a local server connection by running the supplied command.
 
Method Summary
 void close()
          Closes the connection.
protected  void finalize()
           
 java.io.InputStream getErrorStream()
          Gets the stream used for displaying error messages.
 java.io.InputStream getInputStream()
          Gets the input stream from which the client should read server responses from.
 java.io.OutputStream getOutputStream()
          Gets the output stream over which the client should send its requests to the server.
 
Methods inherited from class allensoft.javacvs.client.CVSConnection
displayStatus, getClient, getRepositoryLocation
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalProcessServerConnection

public ExternalProcessServerConnection(CVSClient client,
                                       RepositoryLocation location,
                                       java.lang.String sServerCommand)
                                throws CVSConnectionException
Creates a local server connection by running the supplied command.
Method Detail

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

getInputStream

public java.io.InputStream getInputStream()
Gets the input stream from which the client should read server responses from.
Overrides:
getInputStream in class CVSConnection

getOutputStream

public java.io.OutputStream getOutputStream()
Gets the output stream over which the client should send its requests to the server.
Overrides:
getOutputStream in class CVSConnection

getErrorStream

public java.io.InputStream getErrorStream()
Description copied from class: CVSConnection
Gets the stream used for displaying error messages. If null then there is not error stream.
Overrides:
getErrorStream in class CVSConnection

close

public void close()
Closes the connection.
Overrides:
close in class CVSConnection