public class JsonBeanEncoder extends AbstractBeanEncoder
Modifier and Type | Field and Description |
---|---|
protected String |
charsetName |
protected OutputStream |
originalStream |
protected Writer |
writer |
Constructor and Description |
---|
JsonBeanEncoder(OutputStream stream,
String charsetName) |
Modifier and Type | Method and Description |
---|---|
void |
encode(UseBeanData entity,
Object value)
Codifica uma entidade.
|
void |
innerEncode(UseBeanData entity,
Object value) |
String |
toString() |
protected OutputStream originalStream
protected String charsetName
protected Writer writer
public JsonBeanEncoder(OutputStream stream, String charsetName) throws UnsupportedEncodingException
UnsupportedEncodingException
public void encode(UseBeanData entity, Object value) throws BeanEncoderException
BeanEncoder
entity
- Tipo da entidade.value
- entidaBeanEncoderException
- Lançada se ocorrer alguma falha ao tentar
codificar a entidade.public void innerEncode(UseBeanData entity, Object value) throws Throwable
Throwable
Copyright © 2018 Brandao. All rights reserved.