public abstract class JsonWriter<T> extends Object
Constructor and Description |
---|
JsonWriter() |
Modifier and Type | Method and Description |
---|---|
static String |
formatDate(Date date) |
abstract void |
write(T value,
com.fasterxml.jackson.core.JsonGenerator g) |
void |
write(T value,
com.fasterxml.jackson.core.JsonGenerator g,
int level) |
void |
writeDate(Date date,
com.fasterxml.jackson.core.JsonGenerator g) |
void |
writeDateIso(Date date,
com.fasterxml.jackson.core.JsonGenerator g) |
void |
writeFields(T value,
com.fasterxml.jackson.core.JsonGenerator g) |
void |
writeToFile(T value,
File file) |
void |
writeToFile(T value,
File file,
boolean indent) |
void |
writeToFile(T value,
String fileName) |
void |
writeToFile(T value,
String fileName,
boolean indent) |
void |
writeToStream(T value,
OutputStream out) |
void |
writeToStream(T value,
OutputStream out,
boolean indent) |
String |
writeToString(T value) |
String |
writeToString(T value,
boolean indent) |
public abstract void write(T value, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOException
public void write(T value, com.fasterxml.jackson.core.JsonGenerator g, int level) throws IOException
IOException
public void writeFields(T value, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOException
public final void writeToStream(T value, OutputStream out, boolean indent) throws IOException
IOException
public final void writeToStream(T value, OutputStream out) throws IOException
IOException
public final void writeToFile(T value, File file, boolean indent) throws IOException
IOException
public final void writeToFile(T value, File file) throws IOException
IOException
public final void writeToFile(T value, String fileName, boolean indent) throws IOException
IOException
public final void writeToFile(T value, String fileName) throws IOException
IOException
public final void writeDateIso(Date date, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOException
public final void writeDate(Date date, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOException