Class StreamFactoryFixedString


public class StreamFactoryFixedString extends StreamFactoryText
FixedLengthのストリームファクトリ。
StreamFactory#getTypeがStreamType.FIXED_LENGTHを返す場合このクラスにキャストできます。
  • Method Details

    • create

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

      public void add(Value[] record) throws StreamException
      Throws:
      StreamException
    • add

      public void add(byte[] record) throws StreamException
      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プロパティ値を取得します
    • isMemoryReductionMode

      public boolean isMemoryReductionMode()
      MemoryReductionModeプロパティ値を取得します
    • createEmptyStream

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

      public StreamDataObject createEmptyStreamWithoutDefaultEncoding() throws StreamException
      Throws:
      StreamException
    • doEquals

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