Package com.google.gson.internal
Class Streams.AppendableWriter
java.lang.Object
java.io.Writer
com.google.gson.internal.Streams.AppendableWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
- Streams
Adapts an
Appendable
so it can be passed anywhere a Writer
is used.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
A mutable char sequence pointing at a single char[]. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Appendable
private final Streams.AppendableWriter.CurrentWrite
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
appendable
-
currentWrite
-
-
Constructor Details
-
AppendableWriter
AppendableWriter(Appendable appendable)
-
-
Method Details
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() -
close
public void close()
-