com.infoteria.asteria.flowlibrary2.stream
Class StreamFactoryMIME

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.stream.StreamFactory
        |
        +--com.infoteria.asteria.flowlibrary2.stream.StreamFactoryBinary
              |
              +--com.infoteria.asteria.flowlibrary2.stream.StreamFactoryMIME

public class StreamFactoryMIME
extends StreamFactoryBinary

MIMEのストリームファクトリ。
StreamFactory#getTypeがStreamType.MIMEを返す場合このクラスにキャストできます。


Method Summary
 StreamDataObject create()
          空のストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
 StreamDataObject create(byte[] b)
          バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
MIMETypeはStreamDataMIME.TYPE_HTTPになります。
 StreamDataMIME create(byte[] b, StreamDataMIME.Type type)
          バイト列とMIMETypeを指定してストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
 StreamDataObject createEmptyStream()
          "Content-Length: 0"のみを設定したMIMEストリームを作成して返します。
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
addProperty, compare, create, create, doEquals, equals, getFieldDefinition, getInstance, getType, setFieldDefinition, setNeedCheckpointParse, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public StreamDataObject create(byte[] b)
                        throws StreamException
バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
MIMETypeはStreamDataMIME.TYPE_HTTPになります。
Overrides:
create in class StreamFactoryBinary

create

public StreamDataObject create()
                        throws StreamException
空のストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
Overrides:
create in class StreamFactoryBinary

create

public StreamDataMIME create(byte[] b,
                             StreamDataMIME.Type type)
                      throws StreamException
バイト列とMIMETypeを指定してストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。

createEmptyStream

public StreamDataObject createEmptyStream()
                                   throws StreamException
"Content-Length: 0"のみを設定したMIMEストリームを作成して返します。
Overrides:
createEmptyStream in class StreamFactory