(クラス)
A TextOutputStream interface for a SHA-1-Digester.
説明
default: | Construct stream using digester. |
ファクトリ public | {SHA-1-TextDigesterStream.default}:{this-class} |
digester: | The underlying digester used by the stream. |
フィールド public-get private-set SHA-1-TextDigesterStream.digester:
SHA-1-Digester
アクセサ public SHA-1-TextDigesterStream.open?:
bool
アクセサ public SHA-1-TextDigesterStream.origin-url:#
Url
アクセサ public SHA-1-TextDigesterStream.write-buffer-data-size:
int
flush: | self が収集した、バッファされた出力をフラッシュします。 |
public | {SHA-1-TextDigesterStream.flush non-blocking?:bool = false,allow-short-write?:bool = true }:void |
release: | Release the stream for reuse. |
public | {SHA-1-TextDigesterStream.release}:void |
public inline | {SHA-1-TextDigesterStream.write-one c:char}:void |
(ファクトリ)
public | {SHA-1-TextDigesterStream.default}:{this-class} |
Construct stream using digester.
説明
Make sure to invoke
release when you are done with the stream, so that it can be reused by future invocations of this factory.
(フィールド)
public-get private-set SHA-1-TextDigesterStream.digester:
SHA-1-Digester The underlying digester used by the stream.
(アクセサ)
アクセサ public SHA-1-TextDigesterStream.open?:
bool このストリームが現在開いているかどうかを示します。Stream-of.close が呼び出されると false を返します。
注意事項
オーバーライド
サブクラスにはこのメソッドを実装する必要があります。
(アクセサ)
アクセサ public SHA-1-TextDigesterStream.origin-url:#
Url このストリームを開いた Url を返します。そのような Url が存在しない場合は null を返します。
例
(アクセサ)
アクセサ public SHA-1-TextDigesterStream.write-buffer-data-size:
int バッファ内のフラッシュされていないデータ量を示します。
(メソッド)
public | {SHA-1-TextDigesterStream.flush non-blocking?:bool = false,allow-short-write?:bool = true }:void |
self が収集した、バッファされた出力をフラッシュします。
オーバーライド
非抽象サブクラスにより提供される必要があります。実装では次のようなコードを含める必要があリます。
{if not self.open? then
{throw {new IOException, {format "%s not open", self}}}
}
このメソッドの実装の上部に記述します。
(メソッド)
public | {SHA-1-TextDigesterStream.release}:void |
Release the stream for reuse.
説明
Release the stream so that it can be returned by a future invocation of the default factory.
The caller must not use the stream after calling this method.
(メソッド)
public inline | {SHA-1-TextDigesterStream.write-one c:char}:void |
アイテムを OutputStream-of に書き込みます。
注意事項
ストリームが開いていない時にこのメソッドを呼び出すとエラーが発生します。サブクラスにこのメソッドを実装する必要があります。
オーバーライド
非抽象サブクラスにより提供される必要があります。実装では次のようなコードを含める必要があリます。
{if not self.open? then
{throw {new IOException, {format "%s not open", self}}}
}
このメソッドの実装の上部に記述します。