Package com.apicatalog.tree.io
Class Jackson2Writer
- java.lang.Object
-
- com.apicatalog.tree.io.NodeVisitor
-
- com.apicatalog.tree.io.NodeGenerator
-
- com.apicatalog.tree.io.Jackson2Writer
-
public class Jackson2Writer extends NodeGenerator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.apicatalog.tree.io.NodeGenerator
NodeGenerator.PropertyKeyPolicy
-
Nested classes/interfaces inherited from class com.apicatalog.tree.io.NodeVisitor
NodeVisitor.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.core.JsonGeneratorwriter-
Fields inherited from class com.apicatalog.tree.io.NodeGenerator
policy
-
Fields inherited from class com.apicatalog.tree.io.NodeVisitor
adapter, depth, entryComparator, maxDepth, maxVisited, node, nodeContext, nodeType, stack, UNLIMITED_DEPTH, UNLIMITED_NODES, visited
-
-
Constructor Summary
Constructors Modifier Constructor Description Jackson2Writer(com.fasterxml.jackson.core.JsonGenerator writer)protectedJackson2Writer(com.fasterxml.jackson.core.JsonGenerator writer, java.util.Deque<java.lang.Object> stack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeginCollection()protected voidbeginMap()protected voidend()protected voidscalar(java.lang.Object node)-
Methods inherited from class com.apicatalog.tree.io.NodeGenerator
node, node
-
Methods inherited from class com.apicatalog.tree.io.NodeVisitor
keyComparator, maxDepth, maxDepth, maxVisited, maxVisited, of, of, reset, step, visited
-
-
-
-
Method Detail
-
scalar
protected void scalar(java.lang.Object node) throws java.io.IOException- Specified by:
scalarin classNodeGenerator- Throws:
java.io.IOException
-
beginMap
protected void beginMap() throws java.io.IOException- Specified by:
beginMapin classNodeGenerator- Throws:
java.io.IOException
-
beginCollection
protected void beginCollection() throws java.io.IOException- Specified by:
beginCollectionin classNodeGenerator- Throws:
java.io.IOException
-
end
protected void end() throws java.io.IOException- Specified by:
endin classNodeGenerator- Throws:
java.io.IOException
-
-