OutputStream

A classe abstrata OutputStream oferece a funcionalidade básica para a transferência seqüencial de bytes para algum destino. Os métodos desta classe são:

Method Summary
 void close()
          Closes this output stream and releases any system resources associated with this stream.
 void flush()
          Flushes this output stream and forces any buffered output bytes to be written out.
 void write(byte[] b)
          Writes b.length bytes from the specified byte array to this output stream.
 void write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to this output stream.
abstract  void write(int b)
          Writes the specified byte to this output stream.

Os métodos write(...) oferecem a funcionalidade básica para escrita de bytes para o destino. O método flush() força a saída para o stream destino de qualquer byte cuja escrita esteja pendente (por exemplo, armazenado em um buffer interno).


© Ivan Luiz Marques Ricarte
DCA/FEEC/UNICAMP

Last modified: Thu Jun 29 12:56:17 EST 2000