com.infoteria.asteria.flowlibrary2.stream
Class StreamFactoryCSV

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

public class StreamFactoryCSV
extends StreamFactoryText

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


Method Summary
 StreamDataObject create()
           
 StreamDataObject create(byte[] b)
           
 StreamDataObject create(byte[] b, String enc)
           
 StreamDataObject create(File file, String enc)
           
 StreamDataObject create(InputStream is, String enc)
           
 StreamDataObject create(List list)
           
 StreamDataObject create(String str)
           
protected  boolean doEquals(StreamFactory sf)
           
 int getEscapeMode()
          EscapeModeプロパティの値を取得します。
 int getNullQuoting()
          NullQuotingプロパティの値を取得します。
 int getOutputFieldName()
          OutputFieldNameプロパティの値を取得します。
 char getQuotedBy()
          QuotedByプロパティの値を取得します。
 int getQuoteTarget()
          QuoteTargetプロパティの値を取得します。
 char getSeparator()
          Separatorプロパティの値を取得します。
 int getStartRow()
          StartRowプロパティの値を取得します。
 boolean isOutputFieldName()
           
 boolean isReadTrim()
          ReadTrimプロパティの値を取得します。
 void setupParser(com.infoteria.asteria.util.csv.CSVParser parser)
           
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
createEmptyStream, 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 StreamDataObject create(List list)
                        throws StreamException

create

public StreamDataObject create(File file,
                               String enc)
                        throws StreamException

create

public StreamDataObject create(InputStream is,
                               String enc)
                        throws StreamException

getSeparator

public char getSeparator()
Separatorプロパティの値を取得します。

getQuotedBy

public char getQuotedBy()
QuotedByプロパティの値を取得します。

getStartRow

public int getStartRow()
StartRowプロパティの値を取得します。

getNullQuoting

public int getNullQuoting()
NullQuotingプロパティの値を取得します。

getQuoteTarget

public int getQuoteTarget()
QuoteTargetプロパティの値を取得します。

getOutputFieldName

public int getOutputFieldName()
OutputFieldNameプロパティの値を取得します。

getEscapeMode

public int getEscapeMode()
EscapeModeプロパティの値を取得します。

isReadTrim

public boolean isReadTrim()
ReadTrimプロパティの値を取得します。

isOutputFieldName

public boolean isOutputFieldName()

setupParser

public void setupParser(com.infoteria.asteria.util.csv.CSVParser parser)

doEquals

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