public class TextWriterAdapter extends Writer implements TextWriter
TextWriter in a Writer.TextWriter.Stream| Constructor and Description |
|---|
TextWriterAdapter(TextWriter delegate)
Creates the writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Flushes any buffered contents of the output stream.
|
long |
getBytesWritten()
Retrieves the number of bytes written by this writer.
|
void |
shutdown()
Releases any resources held by the writer.
|
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str)
Writes some text to the output stream.
|
void |
write(String str,
int off,
int len) |
public TextWriterAdapter(TextWriter delegate)
delegate - Delegate writer.public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
TextWriterwrite in interface TextWriterwrite in class Writerstr - The text to writeIOException - If a problem occurs.public void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
TextWriterflush in interface Flushableflush in interface TextWriterflush in class WriterIOException - If a problem occurs.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void shutdown()
TextWritershutdown in interface TextWriterpublic long getBytesWritten()
TextWritergetBytesWritten in interface TextWriterCopyright © 2025 Open Identity Platform Community. All rights reserved.