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 TypeClassDescriptionprivate static classA mutable char sequence pointing at a single char[]. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Appendableprivate final Streams.AppendableWriter.CurrentWrite -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
appendable
-
currentWrite
-
-
Constructor Details
-
AppendableWriter
AppendableWriter(Appendable appendable)
-
-
Method Details
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
public void flush() -
close
public void close() -
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-