T - public abstract class AbstractRockerOutput<T extends AbstractRockerOutput> extends Object implements RockerOutput<AbstractRockerOutput>
OutputStream. Optimized for writing bytes
vs. Strings. Strings are converted to bytes using the specified charset on
each write.| Modifier and Type | Field and Description |
|---|---|
protected int |
byteLength |
protected Charset |
charset |
protected ContentType |
contentType |
| Constructor and Description |
|---|
AbstractRockerOutput(ContentType contentType,
Charset charset,
int byteLength) |
AbstractRockerOutput(ContentType contentType,
String charsetName,
int byteLength) |
| Modifier and Type | Method and Description |
|---|---|
int |
getByteLength() |
Charset |
getCharset() |
ContentType |
getContentType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoString, w, wprotected final ContentType contentType
protected final Charset charset
protected int byteLength
public AbstractRockerOutput(ContentType contentType, String charsetName, int byteLength)
public AbstractRockerOutput(ContentType contentType, Charset charset, int byteLength)
public ContentType getContentType()
getContentType in interface RockerOutput<AbstractRockerOutput>public Charset getCharset()
getCharset in interface RockerOutput<AbstractRockerOutput>public int getByteLength()
getByteLength in interface RockerOutput<AbstractRockerOutput>Copyright © 2016–2020 Fizzed, Inc. All rights reserved.