Class StreamDataObject
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
- All Implemented Interfaces:
RecordSet,Serializable
- Direct Known Subclasses:
StreamDataBinaryBase,StreamDataContainer,StreamDataParameterList,StreamDataRecord
ストリームの基底クラスです。
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.infoteria.asteria.flowlibrary2.stream.strategy.IStreamDataStrategystatic final StringFilePathを表すストリーム変数のシンボル -
Method Summary
Modifier and TypeMethodDescriptionbyte[]ストリームのバイナリ値を取得します。voidclean()Clean all references and data in this instance.convertToDefaultStrategy(boolean debugMode) Convert this instance to use the default strategy and not use resources on server side.protected StreamDataObjectReturns the stream's binary value as InputStream.Return's the stream's String value as Reader.フィールド定義を取得します。
フィールド定義が存在しない場合はnullを返します。getStreamVariable(String name) ストリーム変数を取得します。int設定されているストリーム変数の数を返します。ストリーム変数名のIteratorを返します。intgetType()タイプを取得します。voidputStreamVariable(String name, Value value) ストリーム変数を設定します。strValue()ストリームの文字列値を取得します。voidwriteCheckpointFile(File targetFile) Write stream data to specified file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.infoteria.asteria.flowlibrary2.stream.RecordSet
getRecord, getRecordCount
-
Field Details
-
PROPERTY_FILEPATH
FilePathを表すストリーム変数のシンボル- See Also:
-
_streamStrategy
protected com.infoteria.asteria.flowlibrary2.stream.strategy.IStreamDataStrategy _streamStrategy
-
-
Method Details
-
getType
public int getType()タイプを取得します。 -
byteValue
ストリームのバイナリ値を取得します。- Throws:
StreamException- パースが発生し、それに失敗した場合
-
getDataInputStream
Returns the stream's binary value as InputStream. If this instance is a high-capacity stream, this method will make sure, that large data is not loaded into memory all at once.- Returns:
- the stream's data
- Throws:
StreamException
-
strValue
ストリームの文字列値を取得します。- Throws:
StreamException- パースが発生し、それに失敗した場合
-
getDataStringReader
Return's the stream's String value as Reader. If this instance is a high-capacity stream, this method will make sure, that large data is not loaded into memory all at once.- Returns:
- the stream's String value as Reader
- Throws:
StreamException
-
getFieldDefinition
フィールド定義を取得します。
フィールド定義が存在しない場合はnullを返します。 -
putStreamVariable
ストリーム変数を設定します。- Parameters:
name- 変数名value- 値
-
getStreamVariable
ストリーム変数を取得します。- Parameters:
name- 変数名- Returns:
- 値。変数名に対応する値が存在しない場合はnull
-
getStreamVariableCount
public int getStreamVariableCount()設定されているストリーム変数の数を返します。- Returns:
- 設定されている変数の数値。(RecordNoとRecordCountは返り値に含まれません)
-
getStreamVariableNames
ストリーム変数名のIteratorを返します。 -
getStreamPropertyNames
-
writeCheckpointFile
Write stream data to specified file. Used to save stream together with a checkpoint.- Parameters:
targetFile- file to save stream to- Throws:
StreamExceptionIOException
-
convertToDefaultStrategy
Convert this instance to use the default strategy and not use resources on server side. This ensures that data can be sent between Warp server and designer.- Returns:
- the converted stream object using the default strategy
- Throws:
StreamException
-
doConvertToDefaultStrategy
- Throws:
StreamException
-
clean
public void clean()Clean all references and data in this instance.
-