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
UnsupportedEncodingExceptionpublic void encode(UseBeanData entity, Object value) throws BeanEncoderException
BeanEncoderentity - 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
ThrowableCopyright © 2026 Brandao. All rights reserved.