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