Package org.meeuw.json.grep
Class Sed
- java.lang.Object
-
- org.meeuw.json.grep.Sed
-
- All Implemented Interfaces:
Iterator<ParseEvent>
public class Sed extends Object implements Iterator<ParseEvent>
jsonsed. To search/replace in json streams.- Since:
- 0.10
-
-
Constructor Summary
Constructors Constructor Description Sed(PathMatcher matcher, com.fasterxml.jackson.core.JsonParser jp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()ParseEventnext()inttoGenerator(com.fasterxml.jackson.core.JsonGenerator generator)StringtoString()static OutputStreamtransform(OutputStream to, PathMatcher pathMatcher)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
Sed
public Sed(PathMatcher matcher, com.fasterxml.jackson.core.JsonParser jp)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<ParseEvent>
-
toGenerator
public int toGenerator(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException- Throws:
IOException
-
next
public ParseEvent next()
- Specified by:
nextin interfaceIterator<ParseEvent>
-
transform
public static OutputStream transform(OutputStream to, PathMatcher pathMatcher) throws IOException
- Throws:
IOException
-
-