|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.cssj.resolver.helpers.AbstractSource
jp.cssj.resolver.file.FileSource
ファイルからデータを取得するSourceです。
| フィールドの概要 |
| クラス jp.cssj.resolver.helpers.AbstractSource から継承したフィールド |
uri |
| コンストラクタの概要 | |
FileSource(File file)
|
|
FileSource(File file,
String mimeType)
|
|
FileSource(File file,
String mimeType,
String encoding)
|
|
FileSource(File file,
URI uri,
String mimeType,
String encoding)
|
|
FileSource(URI uri)
|
|
| メソッドの概要 | |
boolean |
exists()
データが存在すればtrueを返します。 |
String |
getEncoding()
キャラクタ・エンコーディングを返します。 |
File |
getFile()
ファイルとして返します。 |
InputStream |
getInputStream()
バイナリストリームを返します。 |
long |
getLength()
データのサイズを返します。 |
String |
getMimeType()
データのMIME型を返します。 |
Reader |
getReader()
テキストストリームを返します。 |
SourceValidity |
getValidity()
データの変更情報を返します。 |
boolean |
isFile()
ファイルならtrueを返します。 |
boolean |
isInputStream()
バイナリデータとして取得可能ならtrueを返します。 |
boolean |
isReader()
テキストデータとして取得可能ならtrueを返します。 |
| クラス jp.cssj.resolver.helpers.AbstractSource から継承したメソッド |
close, getURI |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public FileSource(File file,
URI uri,
String mimeType,
String encoding)
public FileSource(URI uri)
throws IOException
public FileSource(File file,
String mimeType,
String encoding)
public FileSource(File file,
String mimeType)
public FileSource(File file)
| メソッドの詳細 |
public String getMimeType()
throws IOException
Source の記述:
IOExceptionpublic String getEncoding()
Source の記述:
public boolean exists()
throws IOException
Source の記述:
IOException
public boolean isFile()
throws IOException
Source の記述:
Source 内の isFileAbstractSource 内の isFileIOException
public boolean isInputStream()
throws IOException
Source の記述:
Source 内の isInputStreamAbstractSource 内の isInputStreamIOException
public boolean isReader()
throws IOException
Source の記述:
Source 内の isReaderAbstractSource 内の isReaderIOException
public InputStream getInputStream()
throws IOException
Source の記述:
IOException
public Reader getReader()
throws IOException
Source の記述:
IOExceptionpublic File getFile()
Source の記述:
public long getLength()
throws IOException
Source の記述:
IOException
public SourceValidity getValidity()
throws IOException
Source の記述:
IOException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||