static java.lang.String |
getFileExtension(int type)
引数のストリームタイプに応じた拡張子を返します。
ストリームタイプ返り値
Binary, FixedLength, MIME.bin
Text.txt
HTML.html
CSV.csv
XML, ParameterList, Record.xml
static java.lang.String |
getKeyString()
For memory get put remove |
static java.lang.String |
getStreamStr(StreamDataObject stream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamUtil
public StreamUtil()
getFileExtension
public static java.lang.String getFileExtension(int type)
- 引数のストリームタイプに応じた拡張子を返します。
ストリームタイプ | 返り値 |
Binary, FixedLength, MIME | .bin |
Text | .txt |
HTML | .html |
CSV | .csv |
XML, ParameterList, Record | .xml |
getKeyString
public static java.lang.String getKeyString()
- For memory get put remove
getStreamStr
public static java.lang.String getStreamStr(StreamDataObject stream)
throws StreamException
equalsStreamFactory
public static boolean equalsStreamFactory(StreamFactory sf1,
StreamFactory sf2)
equalsString
public static boolean equalsString(java.lang.String s1,
java.lang.String s2)
equalsLineFeed
public static boolean equalsLineFeed(LineFeed lf1,
LineFeed lf2)
equalsFieldDefinition
public static boolean equalsFieldDefinition(FieldDefinition fd1,
FieldDefinition fd2)
equalsField
public static boolean equalsField(Field f1,
Field f2)
cloneHighCapacityStream
public static StreamDataObject cloneHighCapacityStream(StreamDataObject stream,
java.lang.String targetLogDirectory,
boolean cleanAfterUsage)
throws StreamException,
java.io.IOException,
java.lang.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 clonedjava.io.IOException - if the stream could not be clonedjava.lang.ClassNotFoundException - if the stream could not be cloned
|