Class: OutputStream

OutputStream()

new OutputStream()

Represents an instance of an OutputStream
Do not call constructor directly
Source:

Methods

close()

Close this instance of OutputStream
Source:

flush() → {OutputStream}

Force flushing this OutputStream
Note that OutputStream/write and OutputStream/writeBytes already flushing when writing to the OutputStream
Source:
Returns:
the OutputStream instance
Type
OutputStream

write(bytes, off, len) → {OutputStream}

Writes an array of bytes from an offset with a specific length
Parameters:
Name Type Description
bytes Array.<byte> the array of bytes to write to this OutputStream
off integer from offset
len integer with length
Source:
Returns:
the OutputStream instance
Type
OutputStream

write(b) → {OutputStream}

Writes a single byte
Parameters:
Name Type Description
b byte the single byte to write to this OutputStream
Source:
Returns:
the OutputStream instance
Type
OutputStream

writeBytes(bytes) → {OutputStream}

Writes an array of bytes
Parameters:
Name Type Description
bytes Array.<byte> the array of bytes to write to this OutputStream
Source:
Returns:
the OutputStream instance
Type
OutputStream

writeText(s, charsetopt) → {OutputStream}

Writes a string/text using a specific charset
Parameters:
Name Type Attributes Default Description
s string the string to write to this OutputStream
charset charset <optional>
utf-8 the charset to use
Source:
Returns:
the OutputStream instance
Type
OutputStream