Class StreamFactoryMIME
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamFactory
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryBinary
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryMIME
MIMEのストリームファクトリ。
StreamFactory#getTypeがStreamType.MIMEを返す場合このクラスにキャストできます。
StreamFactory#getTypeがStreamType.MIMEを返す場合このクラスにキャストできます。
-
Method Summary
Modifier and TypeMethodDescriptioncreate(byte[] b) バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
MIMETypeはStreamDataMIME.TYPE_HTTPになります。create(byte[] b, StreamDataMIME.Type type) バイト列とMIMETypeを指定してストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。"Content-Length: 0"のみを設定したMIMEストリームを作成して返します。Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactoryBinary
addMethods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
addProperty, compare, create, create, create, doEquals, equals, getFactoryOutputStream, getFieldDefinition, getInstance, getInstance, getType, initialize, setFieldDefinition, setNeedCheckpointParse, setProperties, terminate
-
Method Details
-
create
バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
MIMETypeはStreamDataMIME.TYPE_HTTPになります。- Overrides:
createin classStreamFactoryBinary- Throws:
StreamException
-
create
バイト列とMIMETypeを指定してストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。- Throws:
StreamException
-
createEmptyStream
"Content-Length: 0"のみを設定したMIMEストリームを作成して返します。- Overrides:
createEmptyStreamin classStreamFactory- Throws:
StreamException
-