public class JsonStream extends ObjectSE
コンストラクターと説明 |
---|
JsonStream(com.fasterxml.jackson.databind.ObjectMapper objectMapper) 指定されたオブジェクトマッパーによる新しい JsonStream を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
<T> void | get(InputStreamSE content, ClassSE<T> type, ConsumerSE<T> consumer) オブジェクトが利用可能になったら、コンテンツからオブジェクトをストリーミングします。 |
void | get(InputStreamSE content, ConsumerSE<com.fasterxml.jackson.databind.node.ObjectNode> consumer) コンテンツが利用可能になったら、コンテンツから object nodes をストリーミングします。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public JsonStream(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
JsonStream
を作成します。objectMapper
- 使用するオブジェクトマッパー public void get(InputStreamSE content, ConsumerSE<com.fasterxml.jackson.databind.node.ObjectNode> consumer) throws IOExceptionSE
object nodes
をストリーミングします。content
- ソースコンテンツ consumer
- ObjectNode
コンシューマー IOExceptionSE
- IO エラー時 public <T> void get(InputStreamSE content, ClassSE<T> type, ConsumerSE<T> consumer) throws IOExceptionSE
T
- オブジェクト型 content
- ソースコンテンツ type
- オブジェクト型 consumer
- ObjectNode
コンシューマー IOExceptionSE
- IO エラー時