public class IacICalendarWriter extends Object implements AutoCloseable
コンストラクタと説明 |
---|
IacICalendarWriter(OutputStream stream)
コンストラクタ
|
IacICalendarWriter(OutputStream stream,
LineSeparator lineSeparator)
コンストラクタ
|
IacICalendarWriter(OutputStream stream,
String encoding)
コンストラクタ
|
IacICalendarWriter(OutputStream stream,
String encoding,
LineSeparator lineSeparator)
コンストラクタ
|
IacICalendarWriter(Writer writer)
コンストラクタ
|
IacICalendarWriter(Writer writer,
LineSeparator lineSeparator)
コンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close()
クローズ処理を行います。
|
void |
close(boolean source)
クローズ処理を行います。
|
void |
flush()
フラッシュ処理を行います。
|
void |
write(IComponent component)
コンポーネント情報を出力します。
|
void |
write(IProperty property)
プロパティ情報を出力します。
|
void |
writeBegin(IComponent component)
コンポーネントの開始文字を出力します。
|
void |
writeBegin(String name)
コンポーネントの開始文字を出力します。
|
void |
writeEnd(IComponent component)
コンポーネントの終了文字を出力します。
|
void |
writeEnd(String name)
コンポーネントの終了文字を出力します。
|
void |
writeLine(String data)
行データを出力します。
|
public IacICalendarWriter(OutputStream stream) throws IacICalendarIOException
stream
- ストリームIacICalendarIOException
- ライターの生成に失敗した場合public IacICalendarWriter(OutputStream stream, LineSeparator lineSeparator) throws IacICalendarIOException
stream
- ストリームlineSeparator
- 改行コードIacICalendarIOException
- ライターの生成に失敗した場合public IacICalendarWriter(OutputStream stream, String encoding) throws IacICalendarIOException
stream
- ストリームencoding
- 文字エンコーディングIacICalendarIOException
- ライターの生成に失敗した場合public IacICalendarWriter(OutputStream stream, String encoding, LineSeparator lineSeparator) throws IacICalendarIOException
stream
- ストリームencoding
- 文字エンコーディングlineSeparator
- 改行コードIacICalendarIOException
- ライターの生成に失敗した場合public IacICalendarWriter(Writer writer) throws IacICalendarIOException
writer
- ライターIacICalendarIOException
- ライターの生成に失敗した場合public IacICalendarWriter(Writer writer, LineSeparator lineSeparator) throws IacICalendarIOException
writer
- ライターlineSeparator
- 改行コードIacICalendarIOException
- ライターの生成に失敗した場合public void close() throws IacICalendarIOException
iCalendar ストリームライターに関連付けられたリソースを解放します。
また、基本ストリームのクローズ処理も行います。
close
インタフェース内 AutoCloseable
IacICalendarIOException
- クローズ処理に失敗した場合public void close(boolean source) throws IacICalendarIOException
iCalendar ストリームライターに関連付けられたリソースを解放します。
source
- 基本ストリームのクローズを行うかどうかの真偽値
(true
:クローズする/false
:クローズしない)IacICalendarIOException
- クローズ処理に失敗した場合public void flush() throws IacICalendarIOException
IacICalendarIOException
- フラッシュ処理に失敗した場合public void write(IComponent component) throws IacICalendarIOException
以下の場合は出力を行いません。
component
- コンポーネントモデルIacICalendarIOException
- 出力処理に失敗した場合ICalendarUtil#hasValue(IContentLine)
,
IComponent.write(IacICalendarWriter)
public void write(IProperty property) throws IacICalendarIOException
以下の場合は出力を行いません。
property
- プロパティモデルIacICalendarIOException
- 出力処理に失敗した場合ICalendarUtil#hasValue(IContentLine)
,
IProperty.write(IacICalendarWriter)
public void writeBegin(IComponent component) throws IacICalendarIOException
コンポーネントモデルからコンテンツライン情報を取得し、コンポーネント名を使用して出力します。
以下の場合は出力を行いません。
null
もしくは空・空白の場合component
- コンポーネントモデルIacICalendarIOException
- 出力処理に失敗した場合public void writeBegin(String name) throws IacICalendarIOException
以下の場合は出力を行いません。
null
もしくは空・空白の場合name
- コンポーネント名IacICalendarIOException
- 出力処理に失敗した場合public void writeEnd(IComponent component) throws IacICalendarIOException
以下の場合は出力を行いません。
null
もしくは空・空白の場合component
- コンポーネントモデルIacICalendarIOException
- 出力処理に失敗した場合public void writeEnd(String name) throws IacICalendarIOException
以下の場合は出力を行いません。
null
もしくは空・空白の場合name
- コンポーネント名IacICalendarIOException
- 出力処理に失敗した場合public void writeLine(String data) throws IacICalendarIOException
末尾に改行コードを含めたデータの出力を行います。
1 行あたりの上限バイト数を超える場合は複数行に分割して出力します。
以下の場合は出力を行いません。
null
もしくは空の場合data
- データIacICalendarIOException
- 出力処理に失敗した場合ContentLineConstants#LINE_LIMIT
Copyright © 2012-2015 NTT DATA INTRAMART CORPORATION