Package com.github.jknack.handlebars
Class Options.NativeBuffer
- java.lang.Object
-
- com.github.jknack.handlebars.Options.NativeBuffer
-
- All Implemented Interfaces:
Options.Buffer,Appendable,CharSequence
- Enclosing class:
- Options
public static class Options.NativeBuffer extends Object implements Options.Buffer
This buffer will write into the underlying writer. It won't be any visible output andtoString()returns an empty string.- Since:
- 2.3.2
-
-
Constructor Summary
Constructors Constructor Description NativeBuffer(Writer writer)Creates a newOptions.NativeBuffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Appendableappend(char c)Appendableappend(CharSequence csq)Appendableappend(CharSequence csq, int start, int end)charcharAt(int index)intlength()CharSequencesubSequence(int start, int end)StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
NativeBuffer
public NativeBuffer(Writer writer)
Creates a newOptions.NativeBuffer.- Parameters:
writer- A writer. Required.
-
-
Method Detail
-
append
public Appendable append(CharSequence csq) throws IOException
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
public Appendable append(CharSequence csq, int start, int end) throws IOException
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
public Appendable append(char c) throws IOException
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
-