Class StreamFactoryFixedString
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamFactory
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryFixedString
FixedLengthのストリームファクトリ。
StreamFactory#getTypeがStreamType.FIXED_LENGTHを返す場合このクラスにキャストできます。
StreamFactory#getTypeがStreamType.FIXED_LENGTHを返す場合このクラスにキャストできます。
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(byte[] record) voidListを基にストリームを作成します。
引数のListはValue[]のリストでなければなりません。"Encoding"パラメータを"utf-8"に設定した、空のFixedStringストリームを作成して返します。protected booleanintPackedSignプロパティ値を取得しますintPackedSignFormatプロパティ値を取得しますintRecordDelimiterプロパティの値を取得します。intRecordLengthプロパティの値を取得します。intStartRowプロパティの値を取得します。intZonedSignプロパティ値を取得しますintZonedSignFormatプロパティ値を取得しますvoidInitialize instance and discard previously added data.booleanCountShiftCodeプロパティ値を取得しますbooleanMemoryReductionModeプロパティ値を取得しますvoidClose any resources and discard previously added data.Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
add, create, create, create, create, create, getEncoding, getLineFeed, setLineFeedMethods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
compare, create, create, create, equals, getFactoryOutputStream, getFieldDefinition, getInstance, getInstance, getType, setFieldDefinition, setNeedCheckpointParse, setProperties
-
Method Details
-
create
Listを基にストリームを作成します。
引数のListはValue[]のリストでなければなりません。- Throws:
StreamException
-
add
- Throws:
StreamException
-
add
- Throws:
StreamException
-
initialize
public void initialize()Description copied from class:StreamFactoryInitialize instance and discard previously added data. Used together with "add" methods,StreamFactory.create()andStreamFactory.terminate(). Example usage:try { initialize(); add(dataPart1); add(dataPart2); stream = create(); } finally { terminate(); }- Overrides:
initializein classStreamFactory
-
terminate
public void terminate()Description copied from class:StreamFactoryClose any resources and discard previously added data. SeeStreamFactory.initialize()for more details.- Overrides:
terminatein classStreamFactory
-
getRecordDelimiter
public int getRecordDelimiter()RecordDelimiterプロパティの値を取得します。 -
getRecordLength
public int getRecordLength()RecordLengthプロパティの値を取得します。 -
getStartRow
public int getStartRow()StartRowプロパティの値を取得します。 -
getPackedSign
public int getPackedSign()PackedSignプロパティ値を取得します -
getPackedSignFormat
public int getPackedSignFormat()PackedSignFormatプロパティ値を取得します -
getZonedSign
public int getZonedSign()ZonedSignプロパティ値を取得します -
getZonedSignFormat
public int getZonedSignFormat()ZonedSignFormatプロパティ値を取得します -
isCountShiftCode
public boolean isCountShiftCode()CountShiftCodeプロパティ値を取得します -
isMemoryReductionMode
public boolean isMemoryReductionMode()MemoryReductionModeプロパティ値を取得します -
createEmptyStream
"Encoding"パラメータを"utf-8"に設定した、空のFixedStringストリームを作成して返します。- Overrides:
createEmptyStreamin classStreamFactory- Throws:
StreamException
-
createEmptyStreamWithoutDefaultEncoding
- Throws:
StreamException
-
doEquals
- Overrides:
doEqualsin classStreamFactoryText
-