com.infoteria.asteria.flowlibrary2.stream
クラス 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を返す場合このクラスにキャストできます。


メソッドの概要
 StreamDataObject create()
          空のストリームを作成します。
 StreamDataObject create(byte[] b)
          バイト列を基にストリームを作成します。
 StreamDataMIME create(byte[] b, StreamDataMIME.Type type)
          バイト列とMIMETypeを指定してストリームを作成します。
 StreamDataObject createEmptyStream()
          "Content-Length: 0"のみを設定したMIMEストリームを作成して返します。
 
クラス com.infoteria.asteria.flowlibrary2.stream.StreamFactory から継承したメソッド
create, create, getFieldDefinition, getType, setProperties
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

create

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

create

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

create

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

createEmptyStream

public StreamDataObject createEmptyStream()
                                   throws StreamException
"Content-Length: 0"のみを設定したMIMEストリームを作成して返します。
オーバーライド:
クラス StreamFactory 内の createEmptyStream