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