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