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
 StreamDataObject create()
           
 StreamDataObject create(byte[] b)
           
 StreamDataObject create(byte[] b, String enc)
           
 StreamDataFixedString create(List list)
          Listを基にストリームを作成します。
引数のListはValue[]のリストでなければなりません。
 StreamDataObject create(String str)
           
 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プロパティ値を取得します
 boolean isCountShiftCode()
          CountShiftCodeプロパティ値を取得します
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
getEncoding, getLineFeed, setLineFeed
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
addProperty, compare, create, create, equals, getFieldDefinition, 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 StreamDataObject create(byte[] b)
                        throws StreamException
Description copied from class: StreamFactory
バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
Overrides:
create in class StreamFactoryText

create

public StreamDataObject create()
                        throws StreamException
Description copied from class: StreamFactoryText
空のストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
Overrides:
create in class StreamFactoryText

create

public StreamDataObject create(String str)
                        throws StreamException
Description copied from class: StreamFactoryText
文字列からストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
Overrides:
create in class StreamFactoryText

create

public StreamDataObject create(byte[] b,
                               String enc)
                        throws StreamException
Description copied from class: StreamFactoryText
バイト列とエンコーディングを指定してストリームを作成します。
encがnullの場合AutoDetectとなります。
返り値のストリームにはストリームプロパティが適用されています。
Overrides:
create in class StreamFactoryText

create

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

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 StreamFactoryText

createEmptyStreamWithoutDefaultEncoding

public StreamDataObject createEmptyStreamWithoutDefaultEncoding()
                                                         throws StreamException

doEquals

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