public interface Source extends MetaSource
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
データが存在すればtrueを返します。
|
String |
getEncoding()
キャラクタ・エンコーディングを返します。未定の場合はnullです。
|
File |
getFile()
ファイルとして返します。
|
InputStream |
getInputStream()
バイナリストリームを返します。
|
long |
getLength()
データのサイズを返します。不明な場合は-1を返します。
|
String |
getMimeType()
データのMIME型を返します。不確定な場合はnull。
|
Reader |
getReader()
テキストストリームを返します。
|
URI |
getURI()
データのURIを返します。
|
SourceValidity |
getValidity()
データの変更情報を返します。
|
boolean |
isFile()
ファイルならtrueを返します。
|
boolean |
isInputStream()
バイナリデータとして取得可能ならtrueを返します。
|
boolean |
isReader()
テキストデータとして取得可能ならtrueを返します。
|
URI getURI()
getURI
in interface MetaSource
boolean exists() throws IOException
IOException
String getMimeType() throws IOException
getMimeType
in interface MetaSource
IOException
String getEncoding() throws IOException
getEncoding
in interface MetaSource
IOException
boolean isInputStream() throws IOException
IOException
InputStream getInputStream() throws IOException, UnsupportedOperationException
IOException
UnsupportedOperationException
boolean isReader() throws IOException
IOException
Reader getReader() throws IOException, UnsupportedOperationException
IOException
UnsupportedOperationException
boolean isFile() throws IOException
IOException
File getFile() throws UnsupportedOperationException
UnsupportedOperationException
SourceValidity getValidity() throws IOException
IOException
long getLength() throws IOException
getLength
in interface MetaSource
IOException
Copyright © 2018 座間ソフト. All rights reserved.