Documentation of 'edu.rit.io.Stdio' Java class
Stdio
edu.rit.io

Class Stdio



  • public class Stdio
    extends java.lang.Object
    Class Stdio provides standard I/O streams that can be redirected on a per-thread basis.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.io.PrintStream err()
      Get the standard error stream for the calling thread.
      static void err(java.io.PrintStream stream)
      Set the standard error stream for the calling thread.
      static java.io.InputStream in()
      Get the standard input stream for the calling thread.
      static void in(java.io.InputStream stream)
      Set the standard input stream for the calling thread.
      static java.io.PrintStream out()
      Get the standard output stream for the calling thread.
      static void out(java.io.PrintStream stream)
      Set the standard output stream for the calling thread.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • in

        public static java.io.InputStream in()
        Get the standard input stream for the calling thread.
        Returns:
        Standard input stream.
      • out

        public static java.io.PrintStream out()
        Get the standard output stream for the calling thread.
        Returns:
        Standard output stream.
      • err

        public static java.io.PrintStream err()
        Get the standard error stream for the calling thread.
        Returns:
        Standard error stream.
      • in

        public static void in(java.io.InputStream stream)
        Set the standard input stream for the calling thread. If not set, the default is System.in.
        Parameters:
        stream - Standard input stream.
        Throws:
        java.lang.NullPointerException - (unchecked exception) Thrown if stream is null.
      • out

        public static void out(java.io.PrintStream stream)
        Set the standard output stream for the calling thread. If not set, the default is System.out.
        Parameters:
        stream - Standard output stream.
        Throws:
        java.lang.NullPointerException - (unchecked exception) Thrown if stream is null.
      • err

        public static void err(java.io.PrintStream stream)
        Set the standard error stream for the calling thread. If not set, the default is System.err.
        Parameters:
        stream - Standard error stream.
        Throws:
        java.lang.NullPointerException - (unchecked exception) Thrown if stream is null.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.