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
public ActiveXOutputStream(IStream stream);
Creates an ActiveXOutputStream object that has the specified IStream interface.
Parameter | Description |
stream
| The IStream interface of the object.
|
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.
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.
public void write(int b) throws IOException;
Writes a byte to the output stream.
Return Value:
No return value.
Parameter | Description |
b
| The byte to write to the output stream.
|
Exceptions:
IOException
if an I/O error occurs.
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.
Parameter | Description |
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.