Class StreamUtil
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamUtil
ユーティリティクラス
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamDataObjectcloneHighCapacityStream(StreamDataObject stream, String targetLogDirectory, boolean cleanAfterUsage) Clone High Capacity Stream and its log files.static booleanequalsField(Field f1, Field f2) static booleanstatic booleanequalsLineFeed(LineFeed lf1, LineFeed lf2) static booleanequalsStreamFactory(StreamFactory sf1, StreamFactory sf2) static booleanequalsString(String s1, String s2) static StringgetFileExtension(int type) 引数のストリームタイプに応じた拡張子を返します。 ストリームタイプ返り値 Binary, FixedLength, MIME.bin Text.txt HTML.html CSV.csv XML, ParameterList, Record.xmlstatic StringFor memory get put removestatic StringgetStreamStr(StreamDataObject stream)
-
Constructor Details
-
StreamUtil
public StreamUtil()
-
-
Method Details
-
getFileExtension
引数のストリームタイプに応じた拡張子を返します。ストリームタイプ 返り値 Binary, FixedLength, MIME .bin Text .txt HTML .html CSV .csv XML, ParameterList, Record .xml -
getKeyString
For memory get put remove -
getStreamStr
- Throws:
StreamException
-
equalsStreamFactory
-
equalsString
-
equalsLineFeed
-
equalsFieldDefinition
-
equalsField
-
cloneHighCapacityStream
public static StreamDataObject cloneHighCapacityStream(StreamDataObject stream, String targetLogDirectory, boolean cleanAfterUsage) throws StreamException, IOException, ClassNotFoundException Clone High Capacity Stream and its log files. If stream is not a HC-Stream, the passed stream object is returned directly.- Parameters:
stream- the stream to be clonedtargetLogDirectory- the directory to save the cloned log files toocleanAfterUsage- true, if the cloned stream and its log files shall be cleaned at the end of the flow, in which it is used- Returns:
- the cloned stream object for a HC stream or the passed stream directly for a normal stream
- Throws:
StreamException- if the stream could not be clonedIOException- if the stream could not be clonedClassNotFoundException- if the stream could not be cloned
-