public class CachingSessionFactory.CachedSession extends ObjectSE implements Session<F>
| 修飾子と型 | メソッドと説明 |
|---|---|
void | append(InputStreamSE inputStream, StringSE destination) ファイルに追加します。 |
void | close() |
void | dirty() このセッションをダーティとしてマークします。これは、再利用するべきではなく、終了する前に委譲されたセッションを処理する必要があることを示します。 |
boolean | exists(StringSE path) リモートファイルまたはディレクトリが存在するかどうかを確認します。 |
boolean | finalizeRaw()Session.readRaw(String) から InputStream を閉じた後に呼び出します。 |
ObjectSE | getClientInstance() このセッションの基礎となるクライアントライブラリのクライアントインスタンスを取得します。 |
StringSE | getHostPort() このセッションが接続されているホストとポートのペアを返します。 |
boolean | isOpen() |
F[] | list(StringSE path) |
StringSE[] | listNames(StringSE path) |
boolean | mkdir(StringSE directory) |
void | read(StringSE source, OutputStreamSE os) |
InputStreamSE | readRaw(StringSE source) リモートファイルを生の InputStreamSE として取得します。 |
boolean | remove(StringSE path) |
void | rename(StringSE pathFrom, StringSE pathTo) |
boolean | rmdir(StringSE directory) リモートディレクトリを削除します。 |
void | write(InputStreamSE inputStream, StringSE destination) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void close()
CloseableSE 内の closeSE AutoCloseableSE 内の closeSE Session<F> 内の close public boolean remove(StringSE path) throws IOExceptionSE
Session<F> 内の remove IOExceptionSEpublic F[] list(StringSE path) throws IOExceptionSE
Session<F> 内の list IOExceptionSEpublic void read(StringSE source, OutputStreamSE os) throws IOExceptionSE
Session<F> 内の read IOExceptionSEpublic void write(InputStreamSE inputStream, StringSE destination) throws IOExceptionSE
Session<F> 内の write IOExceptionSEpublic void append(InputStreamSE inputStream, StringSE destination) throws IOExceptionSE
SessionSession<F> 内の append inputStream - ストリーム。destination - 宛先。IOExceptionSE - IO 例外。public void rename(StringSE pathFrom, StringSE pathTo) throws IOExceptionSE
Session<F> 内の rename IOExceptionSEpublic boolean mkdir(StringSE directory) throws IOExceptionSE
Session<F> 内の mkdir IOExceptionSEpublic boolean rmdir(StringSE directory) throws IOExceptionSE
SessionSession<F> 内の rmdir directory - ディレクトリ。IOExceptionSE - IO 例外。public boolean exists(StringSE path) throws IOExceptionSE
SessionSession<F> 内の exists path - リモートパス。true または false です。IOExceptionSE - リモート対話中の IO 例外。public StringSE[] listNames(StringSE path) throws IOExceptionSE
Session<F> 内の listNames IOExceptionSEpublic InputStreamSE readRaw(StringSE source) throws IOExceptionSE
SessionInputStreamSE として取得します。Session<F> 内の readRaw source - リモートファイルのパス。IOExceptionSE - IOException。public boolean finalizeRaw()
throws IOExceptionSESessionSession.readRaw(String) から InputStream を閉じた後に呼び出します。一部のセッションプロバイダーで必要です。Session<F> 内の finalizeRaw IOExceptionSE - IOException。public void dirty()
Sessionpublic ObjectSE getClientInstance()
SessionObject を返します。これは、別のジェネリクスパラメーターを追加した場合に必要になります。実装では、戻り値の型を絞り込む必要があります。Session<F> 内の getClientInstance public StringSE getHostPort()
SessionSession<F> 内の getHostPort