public class StringEncoder extends AbstractTransformer<String,Buffer>
AbstractTransformer.LastResultAwareState<K,L>
Modifier and Type | Field and Description |
---|---|
protected Charset |
charset |
protected String |
stringTerminator |
attributeBuilder, stateAttr
Constructor and Description |
---|
StringEncoder() |
StringEncoder(Charset charset) |
StringEncoder(Charset charset,
String stringTerminator) |
StringEncoder(String stringTerminator) |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset() |
String |
getName()
Get the Transformer name.
|
boolean |
hasInputRemaining(AttributeStorage storage,
String input) |
void |
setCharset(Charset charset) |
protected TransformationResult<String,Buffer> |
transformImpl(AttributeStorage storage,
String input) |
createStateObject, getLastResult, getMemoryManager, getNamePrefix, getValue, obtainMemoryManager, obtainStateObject, release, saveLastResult, setMemoryManager, transform
public StringEncoder()
public StringEncoder(String stringTerminator)
public StringEncoder(Charset charset)
public String getName()
Transformer
protected TransformationResult<String,Buffer> transformImpl(AttributeStorage storage, String input) throws TransformationException
transformImpl
in class AbstractTransformer<String,Buffer>
TransformationException
public boolean hasInputRemaining(AttributeStorage storage, String input)
public Charset getCharset()
public void setCharset(Charset charset)
Copyright © 2015 Oracle Corporation. All rights reserved.