Class cp
java.lang.Object
|
+----cp
- public class cp
- extends Object
A simple copy program for a simulated file system.
Usage:
java cp input-file output-file
- Author:
- Ray Ontko
-
BUF_SIZE
- The size of the buffer to be used when reading files.
-
OUTPUT_MODE
- The file mode to use when creating the output file.
-
PROGRAM_NAME
- The name of this program.
-
cp()
-
-
main(String[])
- Copies an input file to an output file.
PROGRAM_NAME
public static final String PROGRAM_NAME
- The name of this program.
This is the program name that is used
when displaying error messages.
BUF_SIZE
public static final int BUF_SIZE
- The size of the buffer to be used when reading files.
OUTPUT_MODE
public static final short OUTPUT_MODE
- The file mode to use when creating the output file.
cp
public cp()
main
public static void main(String argv[]) throws Exception
- Copies an input file to an output file.
- Throws: Exception
- if an exception is thrown by
an underlying operation