Stream.flush

int flush()

Sync's the stream to disk.

Returns

0 on success or %-1 on fail.