A classe abstrata Writer é a classe análoga a OutputStream, que é a raiz para as classes de saída de bytes. Ela é a raiz das classes de saída de dados do tipo caráter:
Os métodos da classe Writer incluem o método write() (em cinco versões), o método close() e o método flush():
write
public void write(int c) throws IOException
public void write(char cbuf[]) throws IOException
public abstract void write(char cbuf[], int off, int len) throws IOException
public void write(String str) throws IOException
public void write(String str, int off, int len) throws IOException
|
flush
public abstract void flush() throws IOException
|
close
public abstract void close() throws IOException
|
© Ivan Luiz Marques Ricarte
DCA/FEEC/UNICAMP