com.infoteria.asteria.flowlibrary2.stream
Class StreamFactoryFixedString

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.stream.StreamFactory
        |
        +--com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
              |
              +--com.infoteria.asteria.flowlibrary2.stream.StreamFactoryFixedString

public class StreamFactoryFixedString
extends StreamFactoryText

FixedLengthのストリームファクトリ。
StreamFactory#getTypeがStreamType.FIXED_LENGTHを返す場合このクラスにキャストできます。


Method Summary
 void add(byte[] record)
           
 void add(Value[] record)
           
 StreamDataFixedString create(java.util.List list)
          Listを基にストリームを作成します。
引数のListはValue[]のリストでなければなりません。
 StreamDataObject createEmptyStream()
          "Encoding"パラメータを"utf-8"に設定した、空のFixedStringストリームを作成して返します。
 StreamDataObject createEmptyStreamWithoutDefaultEncoding()
           
protected  boolean doEquals(StreamFactory sf)
           
 int getPackedSign()
          PackedSignプロパティ値を取得します
 int getPackedSignFormat()
          PackedSignFormatプロパティ値を取得します
 int getRecordDelimiter()
          RecordDelimiterプロパティの値を取得します。
 int getRecordLength()
          RecordLengthプロパティの値を取得します。
 int getStartRow()
          StartRowプロパティの値を取得します。
 int getZonedSign()
          ZonedSignプロパティ値を取得します
 int getZonedSignFormat()
          ZonedSignFormatプロパティ値を取得します
 void initialize()
           
 boolean isCountShiftCode()
          CountShiftCodeプロパティ値を取得します
 void terminate()
           
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
add, create, create, create, create, create, getEncoding, getLineFeed, setLineFeed
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
addProperty, compare, create, create, create, equals, getFactoryOutputStream, getFieldDefinition, getInstance, getInstance, getType, setFieldDefinition, setNeedCheckpointParse, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public StreamDataFixedString create(java.util.List list)
                             throws StreamException
Listを基にストリームを作成します。
引数のListはValue[]のリストでなければなりません。

add

public void add(Value[] record)
         throws StreamException

add

public void add(byte[] record)
         throws StreamException

initialize

public void initialize()
Description copied from class: StreamFactory
Initialize instance and discard previously added data. Used together with "add" methods, StreamFactory.create() and StreamFactory.terminate(). Example usage:
 
 try {
 	initialize();
 	add(dataPart1);
 	add(dataPart2);
 	stream = create();
 } finally {
 	terminate();
 }
 
 
Overrides:
initialize in class StreamFactory

terminate

public void terminate()
Description copied from class: StreamFactory
Close any resources and discard previously added data. See StreamFactory.initialize() for more details.
Overrides:
terminate in class StreamFactory

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プロパティ値を取得します

createEmptyStream

public StreamDataObject createEmptyStream()
                                   throws StreamException
"Encoding"パラメータを"utf-8"に設定した、空のFixedStringストリームを作成して返します。
Overrides:
createEmptyStream in class StreamFactory

createEmptyStreamWithoutDefaultEncoding

public StreamDataObject createEmptyStreamWithoutDefaultEncoding()
                                                         throws StreamException

doEquals

protected boolean doEquals(StreamFactory sf)
Overrides:
doEquals in class StreamFactoryText