Package com.squareup.javapoet
Class LineWrapper.RecordingAppendable
- java.lang.Object
-
- com.squareup.javapoet.LineWrapper.RecordingAppendable
-
- All Implemented Interfaces:
java.lang.Appendable
- Enclosing class:
- LineWrapper
static final class LineWrapper.RecordingAppendable extends java.lang.Object implements java.lang.Appendable
A delegatingAppendable
that records info about the chars passing through it.
-
-
Constructor Summary
Constructors Constructor Description RecordingAppendable(java.lang.Appendable delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Appendable
append(char c)
java.lang.Appendable
append(java.lang.CharSequence csq)
java.lang.Appendable
append(java.lang.CharSequence csq, int start, int end)
-
-
-
Method Detail
-
append
public java.lang.Appendable append(java.lang.CharSequence csq) throws java.io.IOException
- Specified by:
append
in interfacejava.lang.Appendable
- Throws:
java.io.IOException
-
append
public java.lang.Appendable append(java.lang.CharSequence csq, int start, int end) throws java.io.IOException
- Specified by:
append
in interfacejava.lang.Appendable
- Throws:
java.io.IOException
-
append
public java.lang.Appendable append(char c) throws java.io.IOException
- Specified by:
append
in interfacejava.lang.Appendable
- Throws:
java.io.IOException
-
-