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
This buffer will write into the underlying writer. It won't be any visible output and
toString() returns an empty string.- Since:
- 2.3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence csq) append(CharSequence csq, int start, int end) charcharAt(int index) intlength()subSequence(int start, int end) toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
NativeBuffer
Creates a newOptions.NativeBuffer.- Parameters:
writer- A writer. Required.
-
-
Method Details
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
- 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
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-