public class SourceWrapper extends Object implements Source
| コンストラクタと説明 |
|---|
SourceWrapper(Source source) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
exists()
データが存在すればtrueを返します。
|
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を返します。
|
String |
toString() |
protected final Source source
public SourceWrapper(Source source)
public boolean exists()
throws IOException
Sourceexists インタフェース内 SourceIOExceptionpublic String getEncoding() throws IOException
SourcegetEncoding インタフェース内 MetaSourcegetEncoding インタフェース内 SourceIOExceptionpublic InputStream getInputStream() throws IOException
SourcegetInputStream インタフェース内 SourceIOExceptionpublic long getLength()
throws IOException
SourcegetLength インタフェース内 MetaSourcegetLength インタフェース内 SourceIOExceptionpublic String getMimeType() throws IOException
SourcegetMimeType インタフェース内 MetaSourcegetMimeType インタフェース内 SourceIOExceptionpublic Reader getReader() throws IOException
SourcegetReader インタフェース内 SourceIOExceptionpublic URI getURI()
SourcegetURI インタフェース内 MetaSourcegetURI インタフェース内 Sourcepublic SourceValidity getValidity() throws IOException
SourcegetValidity インタフェース内 SourceIOExceptionpublic boolean isFile()
throws IOException
SourceisFile インタフェース内 SourceIOExceptionpublic boolean isInputStream()
throws IOException
SourceisInputStream インタフェース内 SourceIOExceptionpublic boolean isReader()
throws IOException
SourceisReader インタフェース内 SourceIOExceptionCopyright © 2023 座間ソフト. All rights reserved.