Class StreamDataCSV
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
com.infoteria.asteria.flowlibrary2.stream.StreamDataText
com.infoteria.asteria.flowlibrary2.stream.StreamDataCSV
- All Implemented Interfaces:
RecordSet,Serializable
CSVストリーム
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
StreamDataObject.StreamConversionException -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEscapeModeのシンボル - エスケープ方法はバックスラッシュstatic final intEscapeModeのシンボル - エスケープ方法は括り文字の二重化static final intOutputFieldNameのシンボル - フィールド名を出力する(フィールド名を常に括る)static final intOutputFieldNameのシンボル - フィールド名を出力しないstatic final intOutputFieldNameのシンボル - フィールド名を出力する(フィールド名も括る)static final intOutputFieldNameのシンボル - フィールド名を出力するstatic final intQuoteModeのシンボル - 空文字は括り、Nullは括りません。static final intQuoteModeのシンボル - 空文字またはNullのフィールドは括り文字で括りません。static final intQuoteModeのシンボル - すべてのフィールドを括り文字で括ります。static final intQuoteTargetのシンボル - すべてstatic final intQuoteTargetのシンボル - String型のみFields inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
_streamStrategy, PROPERTY_FILEPATH -
Constructor Summary
ConstructorsConstructorDescription空のストリームを作成します。StreamDataCSV(byte[] b) バイト列を元にストリームを作成します。StreamDataCSV(byte[] b, String enc) バイト列とエンコーディングを指定してストリームを作成します。StreamDataCSV(String str) 文字列からストリームを作成します。StreamDataCSV(List<String[]> data) Listを引数にしてストリームを作成します。
引数のListはString[]のリストでなければなりません。 -
Method Summary
Modifier and TypeMethodDescriptionprotected StreamDataObjectbyte[]getData()CSVの各フィールドを保持するListを取得します。
Listの各要素は1レコードに対応し、その内容はString[]となっています。int括り文字のエスケープ方法を取得します。int空文字の括り方を取得します。int文字列値、バイナリ値出力の際のフィールド名出力モードを取得します。charフィールドの括り文字を取得します。intQuoteTargetを取得します。Recordを取得します。charセパレータ文字を取得します。int開始行を取得します。
開始行はファクトリの適用時に一度だけ評価され、あとは参照情報となります。com.infoteria.asteria.flowlibrary2.stream.strategy.IStreamStrategybooleanReturns, whether the memory reduction mode shall be used.boolean文字列値、バイナリ値出力の際にフィールド名を出力するかどうかを取得します。boolean読み込み時にTrimするかどうかを指定します。Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataText
byteValue, byteValue, detectLineFeed, detectLineFeed, getDataInputStream, getEncoding, getLineFeed, strValueMethods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
getRecordCountMethods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
clean, convertToDefaultStrategy, getDataInputStream, getDataStringReader, getFieldDefinition, getStreamPropertyNames, getStreamVariable, getStreamVariableCount, getStreamVariableNames, getType, putStreamVariable, writeCheckpointFile
-
Field Details
-
NULLQUOTE_DEFAULT
public static final int NULLQUOTE_DEFAULTQuoteModeのシンボル - 空文字は括り、Nullは括りません。- See Also:
-
NULLQUOTE_QUOTE
public static final int NULLQUOTE_QUOTEQuoteModeのシンボル - すべてのフィールドを括り文字で括ります。- See Also:
-
NULLQUOTE_NONE
public static final int NULLQUOTE_NONEQuoteModeのシンボル - 空文字またはNullのフィールドは括り文字で括りません。- See Also:
-
ESCAPE_DUAL_QUOTE
public static final int ESCAPE_DUAL_QUOTEEscapeModeのシンボル - エスケープ方法は括り文字の二重化- See Also:
-
ESCAPE_BACK_SLASH
public static final int ESCAPE_BACK_SLASHEscapeModeのシンボル - エスケープ方法はバックスラッシュ- See Also:
-
FN_FALSE
public static final int FN_FALSEOutputFieldNameのシンボル - フィールド名を出力しない- See Also:
-
FN_TRUE
public static final int FN_TRUEOutputFieldNameのシンボル - フィールド名を出力する- See Also:
-
FN_QUOTE
public static final int FN_QUOTEOutputFieldNameのシンボル - フィールド名を出力する(フィールド名も括る)- See Also:
-
FN_ALWAYS_QUOTE
public static final int FN_ALWAYS_QUOTEOutputFieldNameのシンボル - フィールド名を出力する(フィールド名を常に括る)- See Also:
-
QUOTE_ALL
public static final int QUOTE_ALLQuoteTargetのシンボル - すべて- See Also:
-
QUOTE_STRING
public static final int QUOTE_STRINGQuoteTargetのシンボル - String型のみ- See Also:
-
-
Constructor Details
-
StreamDataCSV
public StreamDataCSV()空のストリームを作成します。 -
StreamDataCSV
文字列からストリームを作成します。 -
StreamDataCSV
public StreamDataCSV(byte[] b) バイト列を元にストリームを作成します。 -
StreamDataCSV
バイト列とエンコーディングを指定してストリームを作成します。- Throws:
StreamException
-
StreamDataCSV
Listを引数にしてストリームを作成します。
引数のListはString[]のリストでなければなりません。
-
-
Method Details
-
getData
CSVの各フィールドを保持するListを取得します。
Listの各要素は1レコードに対応し、その内容はString[]となっています。- Throws:
StreamException
-
getByteValueNoParse
- Throws:
StreamException
-
getSeparator
public char getSeparator()セパレータ文字を取得します。 -
getQuotedBy
public char getQuotedBy()フィールドの括り文字を取得します。 -
getStartRow
public int getStartRow()開始行を取得します。
開始行はファクトリの適用時に一度だけ評価され、あとは参照情報となります。 -
getNullQuoting
public int getNullQuoting()空文字の括り方を取得します。 -
isOutputFieldName
public boolean isOutputFieldName()文字列値、バイナリ値出力の際にフィールド名を出力するかどうかを取得します。 -
getOutputFieldName
public int getOutputFieldName()文字列値、バイナリ値出力の際のフィールド名出力モードを取得します。 -
getEscapeMode
public int getEscapeMode()括り文字のエスケープ方法を取得します。 -
getQuoteTarget
public int getQuoteTarget()QuoteTargetを取得します。 -
isReadTrim
public boolean isReadTrim()読み込み時にTrimするかどうかを指定します。 -
isMemoryReductionMode
public boolean isMemoryReductionMode()Returns, whether the memory reduction mode shall be used. -
getRecord
Description copied from interface:RecordSetRecordを取得します。- Specified by:
getRecordin interfaceRecordSet- Overrides:
getRecordin classStreamDataText- Throws:
StreamException
-
doConvertToDefaultStrategy
- Overrides:
doConvertToDefaultStrategyin classStreamDataText- Throws:
StreamException
-
getStrategyForFactory
public com.infoteria.asteria.flowlibrary2.stream.strategy.IStreamStrategy getStrategyForFactory()
-