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 void
endArray()
End array.void
endObject()
End object.void
name(String name)
Write name.void
startArray()
Start array.void
startObject()
Start objectvoid
value(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 IOException
Start object- Throws:
IOException
-
endObject
void endObject() throws IOException
End object.- Throws:
IOException
-
startArray
void startArray() throws IOException
Start array.- Throws:
IOException
-
endArray
void endArray() throws IOException
End array.- Throws:
IOException
-
-