Class tee

java.lang.Object
   |
   +----tee

public class tee
extends Object
Reads standard input and writes to standard output and the named file. A simple tee program for a simulated file system.

Usage:

   java tee output-file
 

Author:
Ray Ontko

Variable Index

 o BUF_SIZE
The size of the buffer to be used for reading from the file.
 o OUTPUT_MODE
The file mode to use when creating the output file.
 o PROGRAM_NAME
The name of this program.

Constructor Index

 o tee()

Method Index

 o main(String[])
Copies standard input to standard output and to a file.

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.

 o OUTPUT_MODE
 public static final short OUTPUT_MODE
The file mode to use when creating the output file.

Constructors

 o tee
 public tee()

Methods

 o main
 public static void main(String argv[]) throws Exception
Copies standard input to standard output and to a file.

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