public abstract class AbstractBytesEntityConverter<T extends EntitySerializer<byte[]>>
extends org.noear.solon.core.handle.AbstractEntityConverter
| Modifier and Type | Field and Description |
|---|---|
protected T |
serializer |
| Constructor and Description |
|---|
AbstractBytesEntityConverter(T serializer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowRead() |
boolean |
allowWrite() |
boolean |
canRead(org.noear.solon.core.handle.Context ctx,
String mime) |
boolean |
canWrite(String mime,
org.noear.solon.core.handle.Context ctx) |
T |
getSerializer() |
void |
write(Object data,
org.noear.solon.core.handle.Context ctx) |
String |
writeAndReturn(Object data,
org.noear.solon.core.handle.Context ctx) |
changeBody, changeEntityDo, changeValue, changeValueDo, doRead, doReadArgumentprotected final T extends EntitySerializer<byte[]> serializer
public AbstractBytesEntityConverter(T serializer)
public T getSerializer()
public boolean allowWrite()
public boolean canWrite(String mime, org.noear.solon.core.handle.Context ctx)
public String writeAndReturn(Object data, org.noear.solon.core.handle.Context ctx) throws Throwable
Throwablepublic void write(Object data, org.noear.solon.core.handle.Context ctx) throws Throwable
Throwablepublic boolean allowRead()
public boolean canRead(org.noear.solon.core.handle.Context ctx,
String mime)
Copyright © 2025. All rights reserved.