Class cat

java.lang.Object
   |
   +----cat

public class cat
extends Object
Reads a sequence of files and writes them to standard output. A simple cat program for a simulated file system.

Usage:

   java cat input-file ...
 

Author:
Ray Ontko

Variable Index

 o BUF_SIZE
The size of the buffer to be used for reading from the file.
 o PROGRAM_NAME
The name of this program.

Constructor Index

 o cat()

Method Index

 o main(String[])
Reads files and writes to standard output.

Variables

 o 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.

 o BUF_SIZE
 public static final int BUF_SIZE
The size of the buffer to be used for reading from the file. A buffer of this size is filled before writing to the output file.

Constructors

 o cat
 public cat()

Methods

 o main
 public static void main(String argv[]) throws Exception
Reads files and writes to standard output.

Throws: Exception
if an exception is thrown by an underlying operation