Class StreamFactoryCSV
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamFactory
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
com.infoteria.asteria.flowlibrary2.stream.StreamFactoryCSV
CSVのストリームファクトリ。
StreamFactory#getTypeがStreamType.CSVを返す場合このクラスにキャストできます。
StreamFactory#getTypeがStreamType.CSVを返す場合このクラスにキャストできます。
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreate(byte[] b) バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。バイト列とエンコーディングを指定してストリームを作成します。
encがnullの場合AutoDetectとなります。
返り値のストリームにはストリームプロパティが適用されています。create(InputStream is, String enc) 文字列からストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。protected booleanintEscapeModeプロパティの値を取得します。intNullQuotingプロパティの値を取得します。intOutputFieldNameプロパティの値を取得します。charQuotedByプロパティの値を取得します。intQuoteTargetプロパティの値を取得します。charSeparatorプロパティの値を取得します。intStartRowプロパティの値を取得します。voidInitialize instance and discard previously added data.booleanMemoryReductionModeプロパティの値を取得します。booleanbooleanReadTrimプロパティの値を取得します。voidsetupParser(com.infoteria.asteria.util.csv.CSVParser parser) voidClose any resources and discard previously added data.Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
add, getEncoding, getLineFeed, setLineFeedMethods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
compare, create, create, create, createEmptyStream, equals, getFactoryOutputStream, getFieldDefinition, getInstance, getInstance, getType, setFieldDefinition, setNeedCheckpointParse, setProperties
-
Method Details
-
create
Description copied from class:StreamFactoryバイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。- Overrides:
createin classStreamFactoryText- Throws:
StreamException
-
create
Description copied from class:StreamFactoryText文字列からストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。- Overrides:
createin classStreamFactoryText- Throws:
StreamException
-
create
Description copied from class:StreamFactoryTextバイト列とエンコーディングを指定してストリームを作成します。
encがnullの場合AutoDetectとなります。
返り値のストリームにはストリームプロパティが適用されています。- Overrides:
createin classStreamFactoryText- Throws:
StreamException
-
create
- Throws:
StreamException
-
create
- Overrides:
createin classStreamFactoryText- Throws:
StreamException
-
create
- Overrides:
createin classStreamFactoryText- 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
-
add
- Throws:
StreamException
-
add
- Throws:
StreamException
-
terminate
public void terminate()Description copied from class:StreamFactoryClose any resources and discard previously added data. SeeStreamFactory.initialize()for more details.- Overrides:
terminatein classStreamFactory
-
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プロパティの値を取得します。 -
isMemoryReductionMode
public boolean isMemoryReductionMode()MemoryReductionModeプロパティの値を取得します。 -
isOutputFieldName
public boolean isOutputFieldName() -
setupParser
public void setupParser(com.infoteria.asteria.util.csv.CSVParser parser) -
doEquals
- Overrides:
doEqualsin classStreamFactoryText
-