|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileHandler
Handles the reading and writing of files to and from the server. Different implementations of this interface can use different formats for sending or receiving the files, for example gzipped format.
Method Summary | |
---|---|
void |
copyLocalFile(String pathname,
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(String pathname)
Remove the specified file from the local disk. |
void |
setGlobalOptions(GlobalOptions globalOptions)
Sets the global options. |
void |
setNextFileDate(Date modifiedDate)
Set the modified date of the next file to be written. |
void |
transmitBinaryFile(File file,
LoggedDataOutputStream dos)
Transmit a binary file to the server, using the standard CVS protocol conventions. |
void |
transmitTextFile(File file,
LoggedDataOutputStream dos)
Transmit a text file to the server, using the standard CVS protocol conventions. |
void |
writeBinaryFile(String path,
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(String path,
String mode,
LoggedDataInputStream dis,
int length)
Merge a text file on the local machine with the diff from the server. |
void |
writeTextFile(String path,
String mode,
LoggedDataInputStream dis,
int length)
Write (either create or replace) a text file on the local machine with one read from the server. |
Method Detail |
---|
void transmitTextFile(File file, LoggedDataOutputStream dos) throws IOException
file
- the file to transmitdos
- the data outputstream on which to transmit the file
IOException
void transmitBinaryFile(File file, LoggedDataOutputStream dos) throws IOException
file
- the file to transmitdos
- the data outputstream on which to transmit the file
IOException
void writeTextFile(String path, String mode, LoggedDataInputStream dis, int length) throws 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 read
IOException
void writeRcsDiffFile(String path, String mode, LoggedDataInputStream dis, int length) throws 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 read
IOException
void writeBinaryFile(String path, String mode, LoggedDataInputStream dis, int length) throws 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 read
IOException
void removeLocalFile(String pathname) throws IOException
pathname
- the full path to the file to remove
IOException
- if an IO error occurs while removing the filevoid copyLocalFile(String pathname, String newName) throws IOException
pathname
- the full path to the file to copynewName
- the new name of the file's copy (not the full path)
IOException
- if an IO error occurs while copying the filevoid setNextFileDate(Date modifiedDate)
modifiedDate
- the date the file should be marked as modifiedRequest[] getInitialisationRequests()
void setGlobalOptions(GlobalOptions globalOptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |