com.infoteria.asteria.flowlibrary2.stream
Class StreamDataFixedString

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

public class StreamDataFixedString
extends StreamDataText

固定長文字列ストリーム

See Also:
Serialized Form

Field Summary
static int PACKED_SIGN_ACEF_BD
          PackedSignFormatのシンボル - 符号は A,C,E,F(+)、B,D(-)
static int PACKED_SIGN_ANY
          PackedSignのシンボル - 符号なしの入力を許容、正の符号を出力しない
static int PACKED_SIGN_C_D
          PackedSignFormatのシンボル - 符号は C(+)、D(-)
static int PACKED_SIGN_OPTION
          PackedSignのシンボル - 符号なしの入力を許容、正の符号を出力
static int PACKED_SIGN_REQUIRED
          PackedSignのシンボル - 符号なしは不可
static int RD_LENGTH
          RecordDelimiterのシンボル - レコード長区切り
static int RD_LINEFEED
          RecordDelimiterのシンボル - 改行区切り
static int ZONED_SIGN_ANY
          ZonedSignのシンボル - 符号なしの入力を許容、正の符号を出力しない
static int ZONED_SIGN_C_D
          ZonedSignFormatのシンボル - 符号は C(+)、D(-)
static int ZONED_SIGN_EBCDIC_COMPATIBLE
          ZonedSignFormatのシンボル - 符号はEBCDIC互換 {ABCDEFGHI(+), }JKLMNOPQR(-)
static int ZONED_SIGN_OPTION
          ZonedSignのシンボル - 符号なしの入力を許容、正の符号を出力
static int ZONED_SIGN_REQUIRED
          ZonedSignのシンボル - 符号なしは不可
 
Fields inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
PROPERTY_FILEPATH
 
Constructor Summary
StreamDataFixedString()
          空のストリームを作成します。
StreamDataFixedString(byte[] b)
          バイト列を元にストリームを作成します。
StreamDataFixedString(List data)
          Listを引数にしてストリームを作成します。
引数のListはValue[]のリストでなければなりません。
StreamDataFixedString(String str)
          文字列からストリームを作成します。
 
Method Summary
 byte[] byteValue()
           
 boolean countShiftCode()
           
protected  List getData()
          FixedLengthの各フィールドを保持するListを取得します。
Listの各要素は1レコードに対応し、その内容はValue[]となっています。
 int getPackedSign()
           
 int getPackedSignFormat()
           
 Record getRecord()
           
 int getRecordCount()
           
 int getRecordDelimiter()
          RecordDelimiterを取得します。
 int getRecordLength()
          レコード長を取得します。
 int getStartRow()
          開始行を取得します。
開始行はファクトリの適用時に一度だけ評価され、あとは参照情報となります。
 int getZonedSign()
           
 int getZonedSignFormat()
           
 String strValue()
           
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataText
detectLineFeed, detectLineFeed, getEncoding, getLineFeed
 
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

RD_LINEFEED

public static final int RD_LINEFEED
RecordDelimiterのシンボル - 改行区切り

RD_LENGTH

public static final int RD_LENGTH
RecordDelimiterのシンボル - レコード長区切り

PACKED_SIGN_REQUIRED

public static final int PACKED_SIGN_REQUIRED
PackedSignのシンボル - 符号なしは不可

PACKED_SIGN_OPTION

public static final int PACKED_SIGN_OPTION
PackedSignのシンボル - 符号なしの入力を許容、正の符号を出力

PACKED_SIGN_ANY

public static final int PACKED_SIGN_ANY
PackedSignのシンボル - 符号なしの入力を許容、正の符号を出力しない

PACKED_SIGN_C_D

public static final int PACKED_SIGN_C_D
PackedSignFormatのシンボル - 符号は C(+)、D(-)

PACKED_SIGN_ACEF_BD

public static final int PACKED_SIGN_ACEF_BD
PackedSignFormatのシンボル - 符号は A,C,E,F(+)、B,D(-)

ZONED_SIGN_REQUIRED

public static final int ZONED_SIGN_REQUIRED
ZonedSignのシンボル - 符号なしは不可

ZONED_SIGN_OPTION

public static final int ZONED_SIGN_OPTION
ZonedSignのシンボル - 符号なしの入力を許容、正の符号を出力

ZONED_SIGN_ANY

public static final int ZONED_SIGN_ANY
ZonedSignのシンボル - 符号なしの入力を許容、正の符号を出力しない

ZONED_SIGN_C_D

public static final int ZONED_SIGN_C_D
ZonedSignFormatのシンボル - 符号は C(+)、D(-)

ZONED_SIGN_EBCDIC_COMPATIBLE

public static final int ZONED_SIGN_EBCDIC_COMPATIBLE
ZonedSignFormatのシンボル - 符号はEBCDIC互換 {ABCDEFGHI(+), }JKLMNOPQR(-)
Constructor Detail

StreamDataFixedString

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

StreamDataFixedString

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

StreamDataFixedString

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

StreamDataFixedString

public StreamDataFixedString(List data)
Listを引数にしてストリームを作成します。
引数のListはValue[]のリストでなければなりません。
Method Detail

getData

protected List getData()
                throws StreamException
FixedLengthの各フィールドを保持するListを取得します。
Listの各要素は1レコードに対応し、その内容はValue[]となっています。

byteValue

public byte[] byteValue()
                 throws StreamException
Description copied from class: StreamDataText
ストリームのバイト表現
Overrides:
byteValue in class StreamDataText
Following copied from class: com.infoteria.asteria.flowlibrary2.stream.StreamDataText
Throws:
StreamException - エンコーディングがサポートされていない場合

strValue

public String strValue()
                throws StreamException
Description copied from class: StreamDataText
ストリームの文字列表現
Overrides:
strValue in class StreamDataText
Following copied from class: com.infoteria.asteria.flowlibrary2.stream.StreamDataText
Throws:
StreamException - エンコーディングがサポートされていない場合

getRecordDelimiter

public int getRecordDelimiter()
RecordDelimiterを取得します。

getRecordLength

public int getRecordLength()
レコード長を取得します。

getStartRow

public int getStartRow()
開始行を取得します。
開始行はファクトリの適用時に一度だけ評価され、あとは参照情報となります。

getPackedSign

public int getPackedSign()

getPackedSignFormat

public int getPackedSignFormat()

getZonedSign

public int getZonedSign()

getZonedSignFormat

public int getZonedSignFormat()

countShiftCode

public boolean countShiftCode()

getRecord

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

getRecordCount

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