public abstract class Writer extends Object implements AutoCloseable
| Modifier | Constructor and Description |
|---|---|
protected |
Writer() |
protected |
Writer(Object lock) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
abstract void |
flush() |
void |
write(char[] cbuf) |
abstract void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
protected Object lock
protected Writer()
protected Writer(Object lock)
public abstract void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic abstract void flush()
throws IOException
IOExceptionpublic void write(char[] cbuf)
throws IOException
IOExceptionpublic abstract void write(char[] cbuf,
int off,
int len)
throws IOException
IOExceptionpublic void write(int c)
throws IOException
IOExceptionpublic void write(String str) throws IOException
IOExceptionpublic void write(String str, int off, int len) throws IOException
IOExceptionCopyright © 2026. All rights reserved.