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