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