Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.activeX   Previous This
Package
Next

 


Class ActiveXOutputStream

public class ActiveXOutputStream extends OutputStream
{
  // Constructors
  public ActiveXOutputStream(IStream stream);

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

This class provides access to methods that manipulate output streams. You can create an output stream, write bytes to it, flush the output stream, and close it by using the methods in this class.

OutputStream
  |
  +--ActiveXOutputStream

Constructors

ActiveXOutputStream

public ActiveXOutputStream(IStream stream);

Creates an ActiveXOutputStream object that has the specified IStream interface.

ParameterDescription
stream The IStream interface of the object.

Methods

close

public void close() throws IOException;

Closes the output stream and releases the IStream interface associated with the stream.

Return Value:

No return value.

Exceptions:

IOException if an I/O error occurs.

flush

public void flush() throws IOException;

Flushes the output stream and forces buffered output bytes to be written out.

Return Value:

No return value.

Exceptions:

IOException if an I/O error occurs.

write

public void write(int b) throws IOException;

Writes a byte to the output stream.

Return Value:

No return value.

ParameterDescription
b The byte to write to the output stream.

Exceptions:

IOException if an I/O error occurs.

write

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

Writes a specified number of bytes from a byte array to the output stream, beginning with the byte at offset off in the array.

Return Value:

No return value.

ParameterDescription
b The bytes to write.
off The starting offset in the array.
len The number of bytes to write.

Exceptions:

IOException if an I/O error occurs.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.