Package com.github.jknack.handlebars
Class Options.NativeBuffer
- java.lang.Object
-
- com.github.jknack.handlebars.Options.NativeBuffer
-
- All Implemented Interfaces:
Options.Buffer
,java.lang.Appendable
,java.lang.CharSequence
- Enclosing class:
- Options
public static class Options.NativeBuffer extends java.lang.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(java.io.Writer writer)
Creates a newOptions.NativeBuffer
.
-
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)
char
charAt(int index)
int
length()
java.lang.CharSequence
subSequence(int start, int end)
java.lang.String
toString()
-
-
-
Constructor Detail
-
NativeBuffer
public NativeBuffer(java.io.Writer writer)
Creates a newOptions.NativeBuffer
.- Parameters:
writer
- A writer. Required.
-
-
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
-
length
public int length()
- Specified by:
length
in interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
-