public class HttpSource extends AbstractSource
uri| コンストラクタと説明 |
|---|
HttpSource(URI uri,
org.apache.http.impl.client.CloseableHttpClient httpClient) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close() |
protected org.apache.http.client.methods.HttpUriRequest |
createHttpRequest() |
boolean |
exists()
データが存在すればtrueを返します。
|
String |
getEncoding()
キャラクタ・エンコーディングを返します。
|
File |
getFile()
ファイルとして返します。
|
org.apache.http.client.HttpClient |
getHttpClient() |
InputStream |
getInputStream()
バイナリストリームを返します。
|
long |
getLength()
データのサイズを返します。
|
String |
getMimeType()
データのMIME型を返します。
|
Reader |
getReader()
テキストストリームを返します。
|
SourceValidity |
getValidity()
データの変更情報を返します。
|
boolean |
isInputStream()
バイナリデータとして取得可能ならtrueを返します。
|
boolean |
isReader()
テキストデータとして取得可能ならtrueを返します。
|
protected void |
tryConnect() |
getURI, isFile, toStringpublic HttpSource(URI uri, org.apache.http.impl.client.CloseableHttpClient httpClient)
public org.apache.http.client.HttpClient getHttpClient()
public String getMimeType() throws IOException
SourceIOExceptionpublic String getEncoding() throws IOException
SourceIOExceptionpublic boolean exists()
throws IOException
SourceIOExceptionpublic boolean isInputStream()
throws IOException
SourceisInputStream インタフェース内 SourceisInputStream クラス内 AbstractSourceIOExceptionpublic boolean isReader()
throws IOException
SourceisReader インタフェース内 SourceisReader クラス内 AbstractSourceIOExceptionpublic InputStream getInputStream() throws IOException
SourceIOExceptionprotected void tryConnect()
throws IOException
IOExceptionprotected org.apache.http.client.methods.HttpUriRequest createHttpRequest()
public Reader getReader() throws IOException
SourceIOExceptionpublic long getLength()
throws IOException
SourceIOExceptionpublic SourceValidity getValidity()
Sourcepublic void close()
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 AbstractSourceCopyright © 2023 座間ソフト. All rights reserved.