Package com.fizzed.rocker.runtime
Class AbstractRockerOutput<T extends AbstractRockerOutput>
java.lang.Object
com.fizzed.rocker.runtime.AbstractRockerOutput<T>
- Type Parameters:
T-
- All Implemented Interfaces:
RockerOutput<AbstractRockerOutput>
- Direct Known Subclasses:
ArrayOfByteArraysOutput,OutputStreamOutput,StringBuilderOutput
public abstract class AbstractRockerOutput<T extends AbstractRockerOutput>
extends Object
implements RockerOutput<AbstractRockerOutput>
Output that wraps an
OutputStream. Optimized for writing bytes
vs. Strings. Strings are converted to bytes using the specified charset on
each write.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final Charsetprotected final ContentType -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRockerOutput(ContentType contentType, String charsetName, int byteLength) AbstractRockerOutput(ContentType contentType, Charset charset, int byteLength) -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fizzed.rocker.RockerOutput
toString, w, w
-
Field Details
-
contentType
-
charset
-
byteLength
protected int byteLength
-
-
Constructor Details
-
AbstractRockerOutput
-
AbstractRockerOutput
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfaceRockerOutput<T extends AbstractRockerOutput>
-
getCharset
- Specified by:
getCharsetin interfaceRockerOutput<T extends AbstractRockerOutput>
-
getByteLength
public int getByteLength()- Specified by:
getByteLengthin interfaceRockerOutput<T extends AbstractRockerOutput>
-