com.infoteria.asteria.flowlibrary2.stream
Class StreamFactoryText

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.stream.StreamFactory
        |
        +--com.infoteria.asteria.flowlibrary2.stream.StreamFactoryText
Direct Known Subclasses:
StreamFactoryCSV, StreamFactoryFixedString, StreamFactoryHTML, StreamFactoryXML

public class StreamFactoryText
extends StreamFactory

Textのストリームファクトリ。
StreamFactory#getTypeがStreamType.TEXTを返す場合このクラスにキャストできます。


Method Summary
 StreamDataObject create()
          空のストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
 StreamDataObject create(byte[] b)
           
 StreamDataObject create(byte[] b, String enc)
          バイト列とエンコーディングを指定してストリームを作成します。
encがnullの場合AutoDetectとなります。
返り値のストリームにはストリームプロパティが適用されています。
 StreamDataObject create(String str)
          文字列からストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
 StreamDataObject createEmptyStream()
           
protected  boolean doEquals(StreamFactory sf)
           
 String getEncoding()
          Encodingプロパティの値を取得します。
 LineFeed getLineFeed()
          Linefeedプロパティの値を取得します。
protected  void setLineFeed(LineFeed lf)
           
 
Methods inherited from class com.infoteria.asteria.flowlibrary2.stream.StreamFactory
addProperty, compare, create, create, equals, getFieldDefinition, getInstance, getType, setFieldDefinition, setNeedCheckpointParse, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public StreamDataObject create(byte[] b)
                        throws StreamException
Description copied from class: StreamFactory
バイト列を基にストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。
Overrides:
create in class StreamFactory

create

public StreamDataObject create()
                        throws StreamException
空のストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。

createEmptyStream

public StreamDataObject createEmptyStream()
                                   throws StreamException
Description copied from class: StreamFactory
空のストリームを作成します。
Overrides:
createEmptyStream in class StreamFactory

create

public StreamDataObject create(String str)
                        throws StreamException
文字列からストリームを作成します。
返り値のストリームにはストリームプロパティが適用されています。

create

public StreamDataObject create(byte[] b,
                               String enc)
                        throws StreamException
バイト列とエンコーディングを指定してストリームを作成します。
encがnullの場合AutoDetectとなります。
返り値のストリームにはストリームプロパティが適用されています。

getEncoding

public String getEncoding()
Encodingプロパティの値を取得します。

getLineFeed

public LineFeed getLineFeed()
Linefeedプロパティの値を取得します。

setLineFeed

protected void setLineFeed(LineFeed lf)

doEquals

protected boolean doEquals(StreamFactory sf)
Overrides:
doEquals in class StreamFactory