<close>

Purpose/Function

Closes a stream, reader or writer.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

toClose

java.lang.Object

null

object to close; presumably one of: java.io.InputStream, java.io.OutputStream, java.io.Reader, or java.io.Writer

flush

boolean

true

flush the stream before closing (only applicable to output streams or writers)

failOnError

boolean

false

if true and toClose is not a supported object, is null, or there is a problem closing, an exception is thrown; else returns silently

Elements

None.

ReturnValues

None.

Examples

See the examples in ReadFromStream and ReadNextLine.

  • No labels