public interface FileHandler
| Modifier and Type | Method and Description |
|---|---|
void |
copyLocalFile(java.lang.String pathname,
java.lang.String newName)
Copy a local file to new destination.
|
Request[] |
getInitialisationRequests()
Get any requests that must be sent before commands are sent, to init
this file handler.
|
void |
removeLocalFile(java.lang.String pathname)
Remove the specified file from the local disk.
|
void |
setGlobalOptions(GlobalOptions globalOptions)
Sets the global options.
|
void |
setNextFileDate(java.util.Date modifiedDate)
Set the modified date of the next file to be written.
|
void |
transmitBinaryFile(java.io.File file,
LoggedDataOutputStream dos)
Transmit a binary file to the server, using the standard CVS protocol
conventions.
|
void |
transmitTextFile(java.io.File file,
LoggedDataOutputStream dos)
Transmit a text file to the server, using the standard CVS protocol
conventions.
|
void |
writeBinaryFile(java.lang.String path,
java.lang.String mode,
LoggedDataInputStream dis,
int length)
Write (either create or replace) a text file on the local machine with
one read from the server.
|
void |
writeRcsDiffFile(java.lang.String path,
java.lang.String mode,
LoggedDataInputStream dis,
int length)
Merge a text file on the local machine with
the diff from the server.
|
void |
writeTextFile(java.lang.String path,
java.lang.String mode,
LoggedDataInputStream dis,
int length)
Write (either create or replace) a text file on the local machine with
one read from the server.
|
void transmitTextFile(java.io.File file,
LoggedDataOutputStream dos)
throws java.io.IOException
file - the file to transmitdos - the data outputstream on which to transmit the filejava.io.IOExceptionvoid transmitBinaryFile(java.io.File file,
LoggedDataOutputStream dos)
throws java.io.IOException
file - the file to transmitdos - the data outputstream on which to transmit the filejava.io.IOExceptionvoid writeTextFile(java.lang.String path,
java.lang.String mode,
LoggedDataInputStream dis,
int length)
throws java.io.IOException
path - the absolute path of the file, (including the file name).mode - the mode of the filedis - the stream to read the file from, as byteslength - the number of bytes to readjava.io.IOExceptionvoid writeRcsDiffFile(java.lang.String path,
java.lang.String mode,
LoggedDataInputStream dis,
int length)
throws java.io.IOException
path - the absolute path of the file, (including the file name).mode - the mode of the filedis - the stream to read the file from, as byteslength - the number of bytes to readjava.io.IOExceptionvoid writeBinaryFile(java.lang.String path,
java.lang.String mode,
LoggedDataInputStream dis,
int length)
throws java.io.IOException
path - the absolute path of the file, (including the file name).mode - the mode of the filedis - the stream to read the file from, as byteslength - the number of bytes to readjava.io.IOExceptionvoid removeLocalFile(java.lang.String pathname)
throws java.io.IOException
pathname - the full path to the file to removejava.io.IOException - if an IO error occurs while removing the filevoid copyLocalFile(java.lang.String pathname,
java.lang.String newName)
throws java.io.IOException
pathname - the full path to the file to copynewName - the new name of the file's copy (not the full path)java.io.IOException - if an IO error occurs while copying the filevoid setNextFileDate(java.util.Date modifiedDate)
modifiedDate - the date the file should be marked as modifiedRequest[] getInitialisationRequests()
void setGlobalOptions(GlobalOptions globalOptions)