| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| protected static interface |
| Modifier and Type | Field and Description |
|---|---|
| protected final GenericRecordJsonWriter. | |
| protected int | |
| private static final Pattern | |
| protected final PrintWriter | |
| private static final List | |
| protected int | |
| private static final String | |
| private static final String | |
| protected boolean | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private static void | |
| public static String | |
| public static String | |
| protected static boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected void | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public void | |
| protected String | |
| pack-priv static String | |
| public void | |
| protected boolean | |
| public void | |
| protected boolean | |
| protected boolean | |
| protected boolean |
| aw | back to summary |
|---|---|
| protected final GenericRecordJsonWriter. | |
| childIndex | back to summary |
|---|---|
| protected int childIndex | |
| ESC_CHARS | back to summary |
|---|---|
| private static final Pattern ESC_CHARS | |
| fw | back to summary |
|---|---|
| protected final PrintWriter fw | |
| handler | back to summary |
|---|---|
| private static final List<Map. | |
| indent | back to summary |
|---|---|
| protected int indent | |
| NL | back to summary |
|---|---|
| private static final String NL | |
| TABS | back to summary |
|---|---|
| private static final String TABS | |
| withComments | back to summary |
|---|---|
| protected boolean withComments | |
| ZEROS | back to summary |
|---|---|
| private static final String ZEROS | |
| GenericRecordJsonWriter | back to summary |
|---|---|
| public GenericRecordJsonWriter(File fileName) throws IOException | |
| GenericRecordJsonWriter | back to summary |
|---|---|
| public GenericRecordJsonWriter(Appendable buffer) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| handler | back to summary |
|---|---|
| private static void handler(Class<?> c, GenericRecordJsonWriter. | |
| marshal | back to summary |
|---|---|
| public static String marshal(GenericRecord record) | |
| marshal | back to summary |
|---|---|
| public static String marshal(GenericRecord record, boolean withComments) | |
| matchInstanceOrArray | back to summary |
|---|---|
| protected static boolean matchInstanceOrArray(Class<?> key, Object instance) | |
| printAffineTransform | back to summary |
|---|---|
| protected boolean printAffineTransform(String name, Object o) | |
| printAnnotatedFlag | back to summary |
|---|---|
| protected boolean printAnnotatedFlag(String name, Object o) | |
| printArray | back to summary |
|---|---|
| protected boolean printArray(String name, Object o) | |
| printBoolean | back to summary |
|---|---|
| protected boolean printBoolean(String name, Object o) | |
| printBytes | back to summary |
|---|---|
| protected boolean printBytes(String name, Object o) | |
| printColor | back to summary |
|---|---|
| protected boolean printColor(String name, Object o) | |
| printDimension | back to summary |
|---|---|
| protected boolean printDimension(String name, Object o) | |
| printGenericRecord | back to summary |
|---|---|
| protected boolean printGenericRecord(String name, Object o) | |
| printImage | back to summary |
|---|---|
| protected boolean printImage(String name, Object o) | |
| printList | back to summary |
|---|---|
| protected boolean printList(String name, Object o) | |
| printName | back to summary |
|---|---|
| protected void printName(String name) | |
| printNull | back to summary |
|---|---|
| protected boolean printNull(String name, Object o) | |
| printNumber | back to summary |
|---|---|
protected boolean printNumber(String name, Object o)
| |
| printObject | back to summary |
|---|---|
| protected boolean printObject(String name, Object o) | |
| printPath | back to summary |
|---|---|
| protected boolean printPath(String name, Object o) | |
| printPoint | back to summary |
|---|---|
| protected boolean printPoint(String name, Object o) | |
| printRectangle | back to summary |
|---|---|
| protected boolean printRectangle(String name, Object o) | |
| setWithComments | back to summary |
|---|---|
| public void setWithComments(boolean withComments) | |
| tabs | back to summary |
|---|---|
| protected String tabs() | |
| trimHex | back to summary |
|---|---|
| pack-priv static String trimHex(final long l, final int size) | |
| write | back to summary |
|---|---|
| public void write(GenericRecord record) | |
| writeChildren | back to summary |
|---|---|
| protected boolean writeChildren(GenericRecord record, boolean hasProperties) | |
| writeError | back to summary |
|---|---|
| public void writeError(String errorMsg) | |
| writeProp | back to summary |
|---|---|
| protected boolean writeProp(String name, Supplier<?> value) | |
| writeProperties | back to summary |
|---|---|
| protected boolean writeProperties(GenericRecord record) | |
| writeValue | back to summary |
|---|---|
| protected boolean writeValue(String name, Object o) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Appendable | |
| private String | |
| private final Writer |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream, flushing it first. |
| public void | flush()
Implements abstract java. Implements java. Flushes the stream. |
| pack-priv void | |
| public void | write(char[]
Array of characters cbuf, int Offset from which to start writing characters off, int Number of characters to write len)Implements abstract java. Writes a portion of an array of characters. |
| appender | back to summary |
|---|---|
| private final Appendable appender | |
| holdBack | back to summary |
|---|---|
| private String holdBack | |
| writer | back to summary |
|---|---|
| private final Writer writer | |
| AppendableWriter | back to summary |
|---|---|
| pack-priv AppendableWriter(Appendable buffer) | |
| AppendableWriter | back to summary |
|---|---|
| pack-priv AppendableWriter(Writer writer) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream, flushing it first. Once the stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously closed stream has no effect.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements abstract java. Implements java. Doc from java. Flushes the stream. If the stream has saved any characters from the various write() methods in a buffer, write them immediately to their intended destination. Then, if that destination is another character or byte stream, flush it. Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams. If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| setHoldBack | back to summary |
|---|---|
| pack-priv void setHoldBack(String holdBack) | |
| write | back to summary |
|---|---|
| public void write(char[] cbuf, int off, int len) throws IOException Implements abstract java. Doc from java. Writes a portion of an array of characters.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true, if the element was handled and output produced,
The provided methods can be overridden and an implementation can return false,
if the element hasn't been written to the streamthe parent record, applied via instance method reference record, String the name of the property name, Object the value of the property object)Handler method |
| back to summary | |
|---|---|
| public boolean print(GenericRecordJsonWriter record, String name, Object object) Handler method
| |