public class SnackStringSerializer extends Object implements ContextSerializer<String>
| 构造器和说明 |
|---|
SnackStringSerializer() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
deserialize(String data,
Type toType) |
Object |
deserializeFromBody(org.noear.solon.core.handle.Context ctx) |
org.noear.snack.core.Options |
getConfig() |
String |
getContentType() |
boolean |
matched(org.noear.solon.core.handle.Context ctx,
String mime) |
String |
name() |
String |
serialize(Object obj) |
void |
serializeToBody(org.noear.solon.core.handle.Context ctx,
Object data) |
void |
setConfig(org.noear.snack.core.Options config) |
public org.noear.snack.core.Options getConfig()
public void setConfig(org.noear.snack.core.Options config)
public String getContentType()
getContentType 在接口中 ContextSerializer<String>public boolean matched(org.noear.solon.core.handle.Context ctx,
String mime)
matched 在接口中 ContextSerializer<String>public String serialize(Object obj) throws IOException
serialize 在接口中 org.noear.solon.core.serialize.Serializer<String>IOExceptionpublic Object deserialize(String data, Type toType) throws IOException
deserialize 在接口中 org.noear.solon.core.serialize.Serializer<String>IOExceptionpublic void serializeToBody(org.noear.solon.core.handle.Context ctx,
Object data)
throws IOException
serializeToBody 在接口中 ContextSerializer<String>IOExceptionpublic Object deserializeFromBody(org.noear.solon.core.handle.Context ctx) throws IOException
deserializeFromBody 在接口中 ContextSerializer<String>IOExceptionCopyright © 2024. All rights reserved.