Package com.fizzed.rocker
Interface RockerOutput<T extends RockerOutput>
-
- Type Parameters:
T-
- All Known Implementing Classes:
AbstractRockerOutput,ArrayOfByteArraysOutput,OutputStreamOutput,StringBuilderOutput
public interface RockerOutput<T extends RockerOutput>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetByteLength()java.nio.charset.CharsetgetCharset()ContentTypegetContentType()java.lang.StringtoString()Tw(byte[] bytes)Tw(java.lang.String string)Writes a String to the output.
-
-
-
Method Detail
-
getContentType
ContentType getContentType()
-
getCharset
java.nio.charset.Charset getCharset()
-
w
T w(java.lang.String string) throws java.io.IOException
Writes a String to the output. Implementations are responsible for handling the conversion to the correct charset. Note that underlying implementations may be optimized to handle Strings vs. Bytes.- Parameters:
string- The string to write- Returns:
- This output (so builder pattern can be used)
- Throws:
java.io.IOException- Thrown on exception.
-
w
T w(byte[] bytes) throws java.io.IOException
- Throws:
java.io.IOException
-
getByteLength
int getByteLength()
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-