public class JSONStream extends AbstractLineStream
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log |
private net.minidev.json.parser.JSONParser |
parser |
attributes, encoding, readerclosed, count, id, in, limit, prefix, seqId, sequenceKey, urlSOURCE_KEY| Constructor and Description |
|---|
JSONStream() |
JSONStream(InputStream in) |
JSONStream(SourceURL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
Data |
readNext() |
close, getEncoding, readLine, setEncodinggetId, getInputStream, getLimit, getPrefix, getSequenceKey, getUrl, read, setId, setLimit, setPrefix, setSequenceKey, setUrlprivate final org.slf4j.Logger log
private final net.minidev.json.parser.JSONParser parser
public JSONStream(InputStream in) throws Exception
in - Exceptionpublic void init()
throws Exception
init in interface Sourceinit in class AbstractLineStreamExceptionSource.init()public Data readNext() throws Exception
readNext in class AbstractStreamExceptionstream.io.AbstractStream#readItem(stream.Data)Copyright © 2018. All rights reserved.