public abstract class AbstractConnection extends Object implements Connection
| Constructor and Description |
|---|
AbstractConnection()
Creates a new instance of AbstractConnection
|
| Modifier and Type | Method and Description |
|---|---|
LoggedDataInputStream |
getInputStream()
Get an input stream for receiving data from the server.
|
LoggedDataOutputStream |
getOutputStream()
Get an output stream for sending data to the server.
|
String |
getRepository()
Get the repository path.
|
protected void |
setInputStream(LoggedDataInputStream inputStream)
Set an input stream for receiving data from the server.
|
protected void |
setOutputStream(LoggedDataOutputStream outputStream)
Set an output stream for sending data to the server.
|
void |
setRepository(String repository)
Set the repository path.
|
protected void |
verifyProtocol()
Verifies that this open connection is a connetion to a working CVS
server.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getPort, isOpen, modifyInputStream, modifyOutputStream, open, verifypublic AbstractConnection()
public LoggedDataInputStream getInputStream()
getInputStream in interface Connectionprotected final void setInputStream(LoggedDataInputStream inputStream)
inputStream - The data input streampublic LoggedDataOutputStream getOutputStream()
getOutputStream in interface Connectionprotected final void setOutputStream(LoggedDataOutputStream outputStream)
outputStream - The data output streampublic String getRepository()
getRepository in interface Connectionpublic void setRepository(String repository)
repository - the repositoryprotected void verifyProtocol()
throws IOException
IOExceptionCopyright © 2013. All rights reserved.