ucb.io
Interface StdIO


public interface StdIO

A collection of useful definitions for standalone applications. To use it, define your class to implement StdIO.


Field Summary
static FormatWriter cerr
          C++-ish synonym for stderr.
static FormatReader cin
          C++-ish synonym for stdin.
static FormatWriter cout
          C++-ish synonym for stdout.
static FormatWriter stderr
          The standard error output (which goes to System.err) as a formatted stream.
static FormatReader stdin
          The standard input delivered by System.in as a formatted stream.
static FormatWriter stdout
          The standard output (which goes to System.out) as a formatted stream.
 

Field Detail

stdin

public static final FormatReader stdin
The standard input delivered by System.in as a formatted stream. This stream is tied to the standard output, so that the standard output is flushed whenever data is read from the standard input.

cin

public static final FormatReader cin
C++-ish synonym for stdin.

stdout

public static final FormatWriter stdout
The standard output (which goes to System.out) as a formatted stream.

cout

public static final FormatWriter cout
C++-ish synonym for stdout.

stderr

public static final FormatWriter stderr
The standard error output (which goes to System.err) as a formatted stream. This stream is flushed after each output operation.

cerr

public static final FormatWriter cerr
C++-ish synonym for stderr.