com.hungry.javacvs.util
Class CVSConnection

java.lang.Object
  |
  +--com.hungry.javacvs.util.CVSConnection
Direct Known Subclasses:
CVSClientConnection, CVSServerConnection

public class CVSConnection
extends java.lang.Object


Field Summary
protected static java.lang.String AUTH_ACK
           
protected static java.lang.String AUTH_NACK
           
protected static java.lang.String AUTH_PARTIAL_ACK
           
static int AUTHENTICATION_FAILED
           
static int AUTHENTICATION_SUCCESSFUL
           
protected static java.lang.String BEGIN_AUTH_REQUEST
           
protected static java.lang.String BEGIN_DSA_AUTH_REQUEST
           
protected static java.lang.String BEGIN_DSA_VERIFICATION_REQUEST
           
protected static java.lang.String BEGIN_VERIFICATION_REQUEST
           
static int CVS_JSERVER_PORT
           
static int CVS_PSERVER_PORT
           
protected static java.lang.String END_AUTH_REQUEST
           
protected static java.lang.String END_DSA_AUTH_REQUEST
           
protected static java.lang.String END_DSA_VERIFICATION_REQUEST
           
protected static java.lang.String END_VERIFICATION_REQUEST
           
protected static int STREAM_BUFFER_SIZE
           
static int VERIFICATION_FAILED
           
static int VERIFICATION_SUCCESSFUL
           
 
Constructor Summary
CVSConnection()
           
 
Method Summary
 void attachToSocket(java.net.Socket socket)
           
 int available()
           
 void close()
           
 void connect()
           
 java.net.Socket getSocket()
           
 boolean isConnected()
           
 void readBytes(byte[] bytes)
           
 void readBytes(byte[] bytes, int length)
           
 void readBytes(byte[] buf, int offset, int length)
           
 java.lang.String readLine()
           
 void unreadString(java.lang.String string)
           
 void writeBytes(byte[] bytes)
           
 void writeBytes(byte[] bytes, int offset, int length)
           
 void writeString(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREAM_BUFFER_SIZE

protected static final int STREAM_BUFFER_SIZE

CVS_PSERVER_PORT

public static final int CVS_PSERVER_PORT

BEGIN_AUTH_REQUEST

protected static final java.lang.String BEGIN_AUTH_REQUEST

END_AUTH_REQUEST

protected static final java.lang.String END_AUTH_REQUEST

BEGIN_VERIFICATION_REQUEST

protected static final java.lang.String BEGIN_VERIFICATION_REQUEST

END_VERIFICATION_REQUEST

protected static final java.lang.String END_VERIFICATION_REQUEST

CVS_JSERVER_PORT

public static final int CVS_JSERVER_PORT

BEGIN_DSA_AUTH_REQUEST

protected static final java.lang.String BEGIN_DSA_AUTH_REQUEST

END_DSA_AUTH_REQUEST

protected static final java.lang.String END_DSA_AUTH_REQUEST

BEGIN_DSA_VERIFICATION_REQUEST

protected static final java.lang.String BEGIN_DSA_VERIFICATION_REQUEST

END_DSA_VERIFICATION_REQUEST

protected static final java.lang.String END_DSA_VERIFICATION_REQUEST

AUTH_ACK

protected static final java.lang.String AUTH_ACK

AUTH_NACK

protected static final java.lang.String AUTH_NACK

AUTH_PARTIAL_ACK

protected static final java.lang.String AUTH_PARTIAL_ACK

AUTHENTICATION_FAILED

public static final int AUTHENTICATION_FAILED

AUTHENTICATION_SUCCESSFUL

public static final int AUTHENTICATION_SUCCESSFUL

VERIFICATION_FAILED

public static final int VERIFICATION_FAILED

VERIFICATION_SUCCESSFUL

public static final int VERIFICATION_SUCCESSFUL
Constructor Detail

CVSConnection

public CVSConnection()
Method Detail

attachToSocket

public void attachToSocket(java.net.Socket socket)

getSocket

public java.net.Socket getSocket()

connect

public void connect()
             throws java.io.IOException

close

public void close()
           throws java.io.IOException

writeString

public void writeString(java.lang.String str)
                 throws java.io.IOException

writeBytes

public void writeBytes(byte[] bytes)
                throws java.io.IOException

writeBytes

public void writeBytes(byte[] bytes,
                       int offset,
                       int length)
                throws java.io.IOException

readBytes

public void readBytes(byte[] bytes)
               throws java.io.IOException

readBytes

public void readBytes(byte[] bytes,
                      int length)
               throws java.io.IOException

readBytes

public void readBytes(byte[] buf,
                      int offset,
                      int length)
               throws java.io.IOException

readLine

public java.lang.String readLine()
                          throws java.io.IOException

unreadString

public void unreadString(java.lang.String string)
                  throws java.io.IOException

available

public int available()
              throws java.io.IOException

isConnected

public boolean isConnected()