[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/io/CharArrayWriter.html [Back]  [Original]

CharArrayWriter (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
  5. Field Details
    1. buf
    2. count
  6. Constructor Details
    1. CharArrayWriter()
    2. CharArrayWriter(int)
  7. Method Details
    1. write(int)
    2. write(char[], int, int)
    3. write(String, int, int)
    4. writeTo(Writer)
    5. append(CharSequence)
    6. append(CharSequence, int, int)
    7. append(char)
    8. reset()
    9. toCharArray()
    10. size()
    11. toString()
    12. flush()
    13. close()

Class CharArrayWriter

java.lang.Object
java.io.Writer
java.io.CharArrayWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class CharArrayWriter extends Writer
This class implements a character buffer that can be used as a Writer. The buffer automatically grows when data is written to the stream. The data can be retrieved using toCharArray() and toString().

Note: Invoking close() on this class has no effect, and methods of this class can be called after the stream has closed without generating an IOException.

Since:
1.1


Web Proxy Viewer  |  New URL  |  Original Page