public class CachedSource extends Object implements Source
| コンストラクタと説明 |
|---|
CachedSource(URI uri,
String mimeType,
String encoding,
File file) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close() |
boolean |
exists()
データが存在すればtrueを返します。
|
protected void |
finalize() |
String |
getEncoding()
キャラクタ・エンコーディングを返します。
|
File |
getFile()
ファイルとして返します。
|
InputStream |
getInputStream()
バイナリストリームを返します。
|
long |
getLength()
データのサイズを返します。
|
String |
getMimeType()
データのMIME型を返します。
|
Reader |
getReader()
テキストストリームを返します。
|
URI |
getURI()
データのURIを返します。
|
SourceValidity |
getValidity()
データの変更情報を返します。
|
boolean |
isFile()
ファイルならtrueを返します。
|
boolean |
isInputStream()
バイナリデータとして取得可能ならtrueを返します。
|
boolean |
isReader()
テキストデータとして取得可能ならtrueを返します。
|
public URI getURI()
SourcegetURI インタフェース内 MetaSourcegetURI インタフェース内 Sourcepublic String getEncoding()
SourcegetEncoding インタフェース内 MetaSourcegetEncoding インタフェース内 Sourcepublic String getMimeType()
SourcegetMimeType インタフェース内 MetaSourcegetMimeType インタフェース内 Sourcepublic InputStream getInputStream() throws IOException
SourcegetInputStream インタフェース内 SourceIOExceptionpublic Reader getReader() throws IOException
SourcegetReader インタフェース内 SourceIOExceptionpublic boolean isFile()
Sourcepublic void close()
public boolean exists()
throws IOException
Sourceexists インタフェース内 SourceIOExceptionpublic boolean isInputStream()
throws IOException
SourceisInputStream インタフェース内 SourceIOExceptionpublic long getLength()
throws IOException
SourcegetLength インタフェース内 MetaSourcegetLength インタフェース内 SourceIOExceptionpublic boolean isReader()
throws IOException
SourceisReader インタフェース内 SourceIOExceptionpublic SourceValidity getValidity()
SourcegetValidity インタフェース内 SourceCopyright © 2023 座間ソフト. All rights reserved.