Interface JsonStreamTarget
-
- All Superinterfaces:
AutoCloseable,Closeable,Flushable
- All Known Implementing Classes:
AutoArrayTarget,AutoPrimitiveTarget,CustomRegexIgnoreAutoPrimitiveTarget,CustomRegexMatchReplaceIgnoreAutoPrimitiveTarget,RemoveRootTarget,StreamTargetDelegate
public interface JsonStreamTarget extends Closeable, Flushable
JSON stream target.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendArray()End array.voidendObject()End object.voidname(String name)Write name.voidstartArray()Start array.voidstartObject()Start objectvoidvalue(Object value)Write value.
-
-
-
Method Detail
-
name
void name(String name) throws IOException
Write name.- Parameters:
name-- Throws:
IOException
-
value
void value(Object value) throws IOException
Write value.- Parameters:
value-- Throws:
IOException
-
startObject
void startObject() throws IOExceptionStart object- Throws:
IOException
-
endObject
void endObject() throws IOExceptionEnd object.- Throws:
IOException
-
startArray
void startArray() throws IOExceptionStart array.- Throws:
IOException
-
endArray
void endArray() throws IOExceptionEnd array.- Throws:
IOException
-
-