Microsoft SDK for Java

openOutputStream

This openOutputStream method of the ClientStoreFile Class contains the following signatures:

openOutputStream()
openOutputStream(boolean append)

openOutputStream()

Opens an output stream to the file.

Syntax

public OutputStream openOutputStream() throws IOException;

Return Value

Returns the OutputStream that is open for writing.

Exceptions

IOException if the file could not be created or truncated.

openOutputStream(boolean append)

Opens an output stream to the file, optionally appending to an existing file.

Syntax

public OutputStream openOutputStream(boolean append) throws IOException;

Return Value

Returns the output stream that is open for writing.

Parameters

append The value that determines whether to append to an existing file. If true, this method appends to an existing file; otherwise, it truncates an existing file.

Exceptions

IOException if the file could not be created or truncated.

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