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, wait
close, getPort, isOpen, modifyInputStream, modifyOutputStream, open, verify
public AbstractConnection()
public LoggedDataInputStream getInputStream()
getInputStream
in interface Connection
protected final void setInputStream(LoggedDataInputStream inputStream)
inputStream
- The data input streampublic LoggedDataOutputStream getOutputStream()
getOutputStream
in interface Connection
protected final void setOutputStream(LoggedDataOutputStream outputStream)
outputStream
- The data output streampublic String getRepository()
getRepository
in interface Connection
public void setRepository(String repository)
repository
- the repositoryprotected void verifyProtocol() throws IOException
IOException
Copyright © 2016. All rights reserved.