@Published(tag="architect") public class ObjectMapperFactory extends Object
ObjectMapper
を生成するクラス。
ObjectMapper生成に利用するファクトリクラス(ObjectMapperFactory
)の実装クラスは、以下の通り決定される。
SystemRepository
にコンポーネント名"objectMapperFactory"でオブジェクトが登録されている場合、
そのオブジェクトを利用する。ObjectMapper
修飾子とタイプ | メソッドと説明 |
---|---|
static <T> ObjectMapper<T> |
create(Class<T> clazz,
InputStream stream)
入力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
InputStream stream,
nablarch.common.databind.DataBindConfig dataBindConfig)
入力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
OutputStream stream)
出力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
OutputStream stream,
nablarch.common.databind.DataBindConfig dataBindConfig)
出力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
Reader reader)
入力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
Reader reader,
nablarch.common.databind.DataBindConfig dataBindConfig)
入力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
String input)
入力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
String input,
nablarch.common.databind.DataBindConfig dataBindConfig)
入力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
Writer writer)
出力用の
ObjectMapper を生成する。 |
static <T> ObjectMapper<T> |
create(Class<T> clazz,
Writer writer,
nablarch.common.databind.DataBindConfig dataBindConfig)
出力用の
ObjectMapper を生成する。 |
@Published public static <T> ObjectMapper<T> create(Class<T> clazz, InputStream stream)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスstream
- 入力ストリーム@Published public static <T> ObjectMapper<T> create(Class<T> clazz, InputStream stream, nablarch.common.databind.DataBindConfig dataBindConfig)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスstream
- 入力ストリームdataBindConfig
- マッパー設定@Published public static <T> ObjectMapper<T> create(Class<T> clazz, Reader reader)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスreader
- リーダ@Published public static <T> ObjectMapper<T> create(Class<T> clazz, Reader reader, nablarch.common.databind.DataBindConfig dataBindConfig)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスreader
- リーダdataBindConfig
- マッパー設定@Published public static <T> ObjectMapper<T> create(Class<T> clazz, String input)
ObjectMapper
を生成する。
使用後にObjectMapper.close()
を呼び出してストリームを閉じること。T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスinput
- 入力テキスト@Published public static <T> ObjectMapper<T> create(Class<T> clazz, String input, nablarch.common.databind.DataBindConfig dataBindConfig)
ObjectMapper
を生成する。
使用後にObjectMapper.close()
を呼び出してストリームを閉じること。T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスinput
- 入力テキストdataBindConfig
- マッパー設定@Published public static <T> ObjectMapper<T> create(Class<T> clazz, OutputStream stream)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスstream
- 出力ストリーム@Published public static <T> ObjectMapper<T> create(Class<T> clazz, OutputStream stream, nablarch.common.databind.DataBindConfig dataBindConfig)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスstream
- 出力ストリームdataBindConfig
- マッパー設定@Published public static <T> ObjectMapper<T> create(Class<T> clazz, Writer writer)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスwriter
- 出力ストリーム@Published public static <T> ObjectMapper<T> create(Class<T> clazz, Writer writer, nablarch.common.databind.DataBindConfig dataBindConfig)
T
- バインディング対象のJavaのクラスclazz
- バインディング対象のJavaのクラスwriter
- 出力ストリームdataBindConfig
- マッパー設定