Class StreamDataText
java.lang.Object
com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
com.infoteria.asteria.flowlibrary2.stream.StreamDataBinaryBase
com.infoteria.asteria.flowlibrary2.stream.StreamDataText
- All Implemented Interfaces:
RecordSet,Serializable
- Direct Known Subclasses:
StreamDataCSV,StreamDataFixedString,StreamDataHTML,StreamDataJSON,StreamDataXML
テキストストリーム
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
StreamDataObject.StreamConversionException -
Field Summary
Fields inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamDataObject
_streamStrategy, PROPERTY_FILEPATH -
Constructor Summary
ConstructorsConstructorDescription空のストリームを作成します。StreamDataText(byte[] b) バイト列を元にストリームを作成します。StreamDataText(byte[] b, String enc) バイト列とエンコーディングを元にストリームを作成します。
encがnullの場合AutoDetectとなります。StreamDataText(String str) 文字列からストリームを作成します。 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]ストリームのバイト表現byte[]static LineFeeddetectLineFeed(byte[] str) 引数のバイト列に最初に出現する改行コードを返します。static LineFeeddetectLineFeed(String str) 引数の文字列に最初に出現する改行コードを返します。protected StreamDataObjectgetDataInputStream(String encoding) エンコーディングを取得します。ラインフィードを取得します。Recordを取得します。strValue()ストリームの文字列表現Methods 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
-
Constructor Details
-
StreamDataText
public StreamDataText()空のストリームを作成します。 -
StreamDataText
文字列からストリームを作成します。 -
StreamDataText
public StreamDataText(byte[] b) バイト列を元にストリームを作成します。 -
StreamDataText
バイト列とエンコーディングを元にストリームを作成します。
encがnullの場合AutoDetectとなります。- Throws:
StreamException
-
-
Method Details
-
byteValue
ストリームのバイト表現- Overrides:
byteValuein classStreamDataObject- Throws:
StreamException- エンコーディングがサポートされていない場合
-
byteValue
- Throws:
StreamException
-
getDataInputStream
- Throws:
StreamException
-
strValue
ストリームの文字列表現- Overrides:
strValuein classStreamDataObject- Throws:
StreamException- エンコーディングがサポートされていない場合
-
getLineFeed
ラインフィードを取得します。 -
getEncoding
エンコーディングを取得します。 -
detectLineFeed
引数のバイト列に最初に出現する改行コードを返します。 -
detectLineFeed
引数の文字列に最初に出現する改行コードを返します。 -
getRecord
Description copied from interface:RecordSetRecordを取得します。- Specified by:
getRecordin interfaceRecordSet- Overrides:
getRecordin classStreamDataBinaryBase- Throws:
StreamException
-
doConvertToDefaultStrategy
- Overrides:
doConvertToDefaultStrategyin classStreamDataObject- Throws:
StreamException
-