public class FileJsonSerializer extends java.lang.Object implements TypeJsonSerializer<java.io.File>
Modifier and Type | Class and Description |
---|---|
static class |
FileJsonSerializer.Type |
Constructor and Description |
---|
FileJsonSerializer(FileJsonSerializer.Type serializationType) |
Modifier and Type | Method and Description |
---|---|
boolean |
serialize(JsonContext jsonContext,
java.io.File file)
Serializes a value and writes a JSON content.
|
public FileJsonSerializer(FileJsonSerializer.Type serializationType)
public boolean serialize(JsonContext jsonContext, java.io.File file)
TypeJsonSerializer
true
if content was written.
Returns false
if content for some reason was not written.serialize
in interface TypeJsonSerializer<java.io.File>
Copyright © 2003-present Jodd Team