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
IOExceptionpublic void write(T value, com.fasterxml.jackson.core.JsonGenerator g, int level) throws IOException
IOExceptionpublic void writeFields(T value, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOExceptionpublic final void writeToStream(T value, OutputStream out, boolean indent) throws IOException
IOExceptionpublic final void writeToStream(T value, OutputStream out) throws IOException
IOExceptionpublic final void writeToFile(T value, File file, boolean indent) throws IOException
IOExceptionpublic final void writeToFile(T value, File file) throws IOException
IOExceptionpublic final void writeToFile(T value, String fileName, boolean indent) throws IOException
IOExceptionpublic final void writeToFile(T value, String fileName) throws IOException
IOExceptionpublic final void writeDateIso(Date date, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOExceptionpublic final void writeDate(Date date, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOException