com.infoteria.asteria.flowlibrary2.stream
Class StreamDataText

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
        |
        +--com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
              |
              +--com.infoteria.asteria.flowlibrary2.stream.StreamDataText
All Implemented Interfaces:
RecordSet, java.io.Serializable
Direct Known Subclasses:
StreamDataCSV, StreamDataFixedString, StreamDataHTML, StreamDataJSON, StreamDataXML

public class StreamDataText
extends StreamDataBinaryBase

テキストストリーム

See Also:
Serialized Form

Fields inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
PROPERTY_FILEPATH
 
Constructor Summary
StreamDataText()
          空のストリームを作成します。
StreamDataText(byte[] b)
          バイト列を元にストリームを作成します。
StreamDataText(byte[] b, java.lang.String enc)
          バイト列とエンコーディングを元にストリームを作成します。
encがnullの場合AutoDetectとなります。
StreamDataText(java.lang.String str)
          文字列からストリームを作成します。
 
Method Summary
 byte[] byteValue()
          ストリームのバイト表現
 byte[] byteValue(java.lang.String encoding)
           
static LineFeed detectLineFeed(byte[] str)
          引数のバイト列に最初に出現する改行コードを返します。
static LineFeed detectLineFeed(java.lang.String str)
          引数の文字列に最初に出現する改行コードを返します。
protected  StreamDataObject doConvertToDefaultStrategy()
           
 java.io.InputStream getDataInputStream(java.lang.String encoding)
           
 java.lang.String getEncoding()
          エンコーディングを取得します。
 LineFeed getLineFeed()
          ラインフィードを取得します。
 Record getRecord()
           
 java.lang.String strValue()
          ストリームの文字列表現
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
getRecordCount
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
clean, convertToDefaultStrategy, getDataInputStream, getDataStringReader, getFieldDefinition, getStreamPropertyNames, getStreamVariable, getStreamVariableCount, getStreamVariableNames, getType, putStreamVariable, writeCheckpointFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamDataText

public StreamDataText()
空のストリームを作成します。

StreamDataText

public StreamDataText(java.lang.String str)
文字列からストリームを作成します。

StreamDataText

public StreamDataText(byte[] b)
バイト列を元にストリームを作成します。

StreamDataText

public StreamDataText(byte[] b,
                      java.lang.String enc)
               throws StreamException
バイト列とエンコーディングを元にストリームを作成します。
encがnullの場合AutoDetectとなります。
Method Detail

byteValue

public byte[] byteValue()
                 throws StreamException
ストリームのバイト表現
Overrides:
byteValue in class StreamDataObject
Throws:
StreamException - エンコーディングがサポートされていない場合

byteValue

public byte[] byteValue(java.lang.String encoding)
                 throws StreamException

getDataInputStream

public java.io.InputStream getDataInputStream(java.lang.String encoding)
                                       throws StreamException

strValue

public java.lang.String strValue()
                          throws StreamException
ストリームの文字列表現
Overrides:
strValue in class StreamDataObject
Throws:
StreamException - エンコーディングがサポートされていない場合

getLineFeed

public LineFeed getLineFeed()
ラインフィードを取得します。

getEncoding

public java.lang.String getEncoding()
エンコーディングを取得します。

detectLineFeed

public static LineFeed detectLineFeed(byte[] str)
引数のバイト列に最初に出現する改行コードを返します。

detectLineFeed

public static LineFeed detectLineFeed(java.lang.String str)
引数の文字列に最初に出現する改行コードを返します。

getRecord

public Record getRecord()
                 throws StreamException
Description copied from interface: RecordSet
Recordを取得します。
Overrides:
getRecord in class StreamDataBinaryBase

doConvertToDefaultStrategy

protected StreamDataObject doConvertToDefaultStrategy()
                                               throws StreamException
Overrides:
doConvertToDefaultStrategy in class StreamDataObject