Class StreamFactoryJSON
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamFactory
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryJSON
XMLのストリームファクトリ。
StreamFactory#getTypeがStreamType.XMLを返す場合このクラスにキャストできます。
StreamFactory#getTypeがStreamType.XMLを返す場合このクラスにキャストできます。
-
Method Summary
Modifier and TypeMethodDescriptioncreate()空のストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
※空のXMLはXMLとしてValidではないのでこのメソッドは常にExceptionになります。create(byte[] b) バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。バイト列とエンコーディングを指定してストリームを作成します。
encがnullの場合AutoDetectとなります。
返り値のストリームにはストリームプロパティが適用されています。create(com.infoteria.asteria.util.json.JSONObject json) JSONObjectからストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。Fileオブジェクトからストリームを作成します。create(InputStream is) java.io.InputStreamからストリームを作成します。文字列からストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。空のJSONオブジェクトを作成して返します。protected booleancom.infoteria.asteria.flowlibrary2.stream.StreamDataJSON.INDENT_TYPEIndentCharプロパティの値を取得しますbooleanisIndent()Indentプロパティの値を取得します。Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
add, create, create, getEncoding, getLineFeed, setLineFeedMethods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
compare, equals, getFactoryOutputStream, getFieldDefinition, getInstance, getInstance, getType, initialize, setFieldDefinition, setNeedCheckpointParse, setProperties, terminate
-
Method Details
-
create
Description copied from class:StreamFactoryバイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。- Overrides:
createin classStreamFactoryText- Throws:
StreamException
-
create
Description copied from class:StreamFactoryTextバイト列とエンコーディングを指定してストリームを作成します。
encがnullの場合AutoDetectとなります。
返り値のストリームにはストリームプロパティが適用されています。- Overrides:
createin classStreamFactoryText- Throws:
StreamException
-
create
空のストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
※空のXMLはXMLとしてValidではないのでこのメソッドは常にExceptionになります。- Overrides:
createin classStreamFactory- Returns:
- the new stream object
- Throws:
StreamException- in case of an exception
-
create
Description copied from class:StreamFactoryText文字列からストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。- Overrides:
createin classStreamFactoryText- Throws:
StreamException
-
create
public StreamDataJSON create(com.infoteria.asteria.util.json.JSONObject json) throws StreamException JSONObjectからストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。- Throws:
StreamException
-
create
Description copied from class:StreamFactoryFileオブジェクトからストリームを作成します。- Overrides:
createin classStreamFactory- Throws:
StreamException
-
create
Description copied from class:StreamFactoryjava.io.InputStreamからストリームを作成します。- Overrides:
createin classStreamFactory- Throws:
StreamException
-
isIndent
public boolean isIndent()Indentプロパティの値を取得します。 -
getIndentType
public com.infoteria.asteria.flowlibrary2.stream.StreamDataJSON.INDENT_TYPE getIndentType()IndentCharプロパティの値を取得します -
createEmptyStream
空のJSONオブジェクトを作成して返します。- Overrides:
createEmptyStreamin classStreamFactory- Throws:
StreamException
-
doEquals
- Overrides:
doEqualsin classStreamFactoryText
-