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 Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(char[] cbuf) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
TextWriter
write
in interface TextWriter
write
in class Writer
str
- The text to writeIOException
- If a problem occurs.public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
public void flush() throws IOException
TextWriter
flush
in interface Flushable
flush
in interface TextWriter
flush
in class Writer
IOException
- If a problem occurs.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void shutdown()
TextWriter
shutdown
in interface TextWriter
public long getBytesWritten()
TextWriter
getBytesWritten
in interface TextWriter
Copyright © 2025 Open Identity Platform Community. All rights reserved.