Microsoft SDK for Java

SystemOutputStream Class

The SystemOutputStream Class of the com.ms.io package provides methods that allow an application to hand an output stream to untrusted code and prevent the untrusted code from closing it. System.out and System.err objects are wrapped with this class, which extends the FilterOutputStream class.

public class SystemOutputStream extends FilterOutputStream
{
  // Constructors
  public SystemOutputStream(OutputStream out, int id);

  // Methods
  public void close() throws IOException;
  public void write(byte b[], int off, int len) throws IOException;
}

Hierarchy

FilterOutputStream
  |
  +--SystemOutputStream

© 1999 Microsoft Corporation. All rights reserved. Terms of use.