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, transformpublic StringEncoder()
public StringEncoder(String stringTerminator)
public StringEncoder(Charset charset)
public String getName()
Transformerprotected TransformationResult<String,Buffer> transformImpl(AttributeStorage storage, String input) throws TransformationException
transformImpl in class AbstractTransformer<String,Buffer>TransformationExceptionpublic boolean hasInputRemaining(AttributeStorage storage, String input)
public Charset getCharset()
public void setCharset(Charset charset)
Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.