com.infoteria.asteria.flowlibrary2.stream
Class StreamDataMIME

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
        |
        +--com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
              |
              +--com.infoteria.asteria.flowlibrary2.stream.StreamDataMIME
All Implemented Interfaces:
RecordSet, Serializable

public class StreamDataMIME
extends StreamDataBinaryBase

MIMEストリーム

See Also:
Serialized Form

Inner Class Summary
static class StreamDataMIME.Type
          MIMEタイプを表す内部クラス
 
Field Summary
static int DEFAULT_OPTION
           
static StreamDataMIME.Type TYPE_HTTP
          HTTPで使用されるMIMEを表すシンボル
static StreamDataMIME.Type TYPE_MIME
          メールで使用されるMIMEを表すシンボル
 
Fields inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
PROPERTY_FILEPATH
 
Constructor Summary
StreamDataMIME()
          空のストリームを作成します。
MIMEタイプはTYPE_HTTPになります。
StreamDataMIME(byte[] b)
          バイト列を元にストリームを作成します。 MIMEタイプはTYPE_HTTPになります。
StreamDataMIME(byte[] b, StreamDataMIME.Type type)
          バイト列とMIMEタイプを指定してストリームを作成します。
 
Method Summary
 byte[] byteValue()
           
 StreamDataMIME.Type getMIMEType()
          MIMEタイプを取得します。
static StreamDataMIME.Type strToMIMEType(String str)
          文字列からMIMEタイプを取得します。
 String strValue()
           
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
getRecord, getRecordCount
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
getFieldDefinition, getStreamPropertyNames, getStreamVariable, getStreamVariableCount, getStreamVariableNames, getType, putStreamVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OPTION

public static final int DEFAULT_OPTION

TYPE_HTTP

public static final StreamDataMIME.Type TYPE_HTTP
HTTPで使用されるMIMEを表すシンボル

TYPE_MIME

public static final StreamDataMIME.Type TYPE_MIME
メールで使用されるMIMEを表すシンボル
Constructor Detail

StreamDataMIME

public StreamDataMIME()
空のストリームを作成します。
MIMEタイプはTYPE_HTTPになります。

StreamDataMIME

public StreamDataMIME(byte[] b)
バイト列を元にストリームを作成します。 MIMEタイプはTYPE_HTTPになります。

StreamDataMIME

public StreamDataMIME(byte[] b,
                      StreamDataMIME.Type type)
バイト列とMIMEタイプを指定してストリームを作成します。
Method Detail

strToMIMEType

public static StreamDataMIME.Type strToMIMEType(String str)
文字列からMIMEタイプを取得します。

getMIMEType

public StreamDataMIME.Type getMIMEType()
MIMEタイプを取得します。

byteValue

public byte[] byteValue()
                 throws StreamException
Description copied from class: StreamDataBinaryBase
ストリームのバイト表現。
Overrides:
byteValue in class StreamDataBinaryBase
Following copied from class: com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
Throws:
StreamException - パースが発生し、それに失敗した場合

strValue

public String strValue()
                throws StreamException
Description copied from class: StreamDataObject
ストリームの文字列値を取得します。
Overrides:
strValue in class StreamDataObject
Following copied from class: com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
Throws:
StreamException - パースが発生し、それに失敗した場合