Ejemplo n.º 1
0
 /**
  * Reassigns the "standard" output stream.
  *
  * <p>First, if there is a security manager, its <code>checkPermission</code> method is called
  * with a <code>RuntimePermission("setIO")</code> permission to see if it's ok to reassign the
  * "standard" output stream.
  *
  * @param out the new standard output stream
  * @throws SecurityException if a security manager exists and its <code>checkPermission</code>
  *     method doesn't allow reassigning of the standard output stream.
  * @see SecurityManager#checkPermission
  * @see java.lang.RuntimePermission
  * @since JDK1.1
  */
 public static void setOut(PrintStream out) {
   checkIO();
   setOut0(out);
 }
Ejemplo n.º 2
0
 /**
  * Reassigns the "standard" error output stream.
  *
  * <p>First, if there is a security manager, its <code>checkPermission</code> method is called
  * with a <code>RuntimePermission("setIO")</code> permission to see if it's ok to reassign the
  * "standard" error output stream.
  *
  * @param err the new standard error output stream.
  * @throws SecurityException if a security manager exists and its <code>checkPermission</code>
  *     method doesn't allow reassigning of the standard error output stream.
  * @see SecurityManager#checkPermission
  * @see java.lang.RuntimePermission
  * @since JDK1.1
  */
 public static void setErr(PrintStream err) {
   checkIO();
   setErr0(err);
 }
Ejemplo n.º 3
0
 /**
  * Reassigns the "standard" input stream.
  *
  * <p>First, if there is a security manager, its <code>checkPermission</code> method is called
  * with a <code>RuntimePermission("setIO")</code> permission to see if it's ok to reassign the
  * "standard" input stream.
  *
  * <p>
  *
  * @param in the new standard input stream.
  * @throws SecurityException if a security manager exists and its <code>checkPermission</code>
  *     method doesn't allow reassigning of the standard input stream.
  * @see SecurityManager#checkPermission
  * @see java.lang.RuntimePermission
  * @since JDK1.1
  */
 public static void setIn(InputStream in) {
   checkIO();
   setIn0(in);
 }