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) リモートファイルを生の InputStream SE として取得します。 |
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, waitSE
public void close()
CloseableSE
の closeSE
AutoCloseableSE
の closeSE
Session<F>
の close
public boolean remove(StringSE path) throws IOExceptionSE
Session<F>
の remove
IOExceptionSE
public F[] list(StringSE path) throws IOExceptionSE
Session<F>
の list
IOExceptionSE
public void read(StringSE source, OutputStreamSE os) throws IOExceptionSE
Session<F>
の read
IOExceptionSE
public void write(InputStreamSE inputStream, StringSE destination) throws IOExceptionSE
Session<F>
の write
IOExceptionSE
public void append(InputStreamSE inputStream, StringSE destination) throws IOExceptionSE
Session
Session<F>
の append
inputStream
- ストリーム。destination
- 宛先。IOExceptionSE
- IO 例外。public void rename(StringSE pathFrom, StringSE pathTo) throws IOExceptionSE
Session<F>
の rename
IOExceptionSE
public boolean mkdir(StringSE directory) throws IOExceptionSE
Session<F>
の mkdir
IOExceptionSE
public boolean rmdir(StringSE directory) throws IOExceptionSE
Session
Session<F>
の rmdir
directory
- ディレクトリ。IOExceptionSE
- IO 例外。public boolean exists(StringSE path) throws IOExceptionSE
Session
Session<F>
の exists
path
- リモートパス。true
または false
です。IOExceptionSE
- リモート対話中の IO 例外。public StringSE[] listNames(StringSE path) throws IOExceptionSE
Session<F>
の listNames
IOExceptionSE
public InputStreamSE readRaw(StringSE source) throws IOExceptionSE
Session
InputStream
SE として取得します。Session<F>
の readRaw
source
- リモートファイルのパス。IOExceptionSE
- IOException。public boolean finalizeRaw() throws IOExceptionSE
Session
Session.readRaw(String)
から InputStream を閉じた後に呼び出します。一部のセッションプロバイダーで必要です。Session<F>
の finalizeRaw
IOExceptionSE
- IOException。public void dirty()
Session
public ObjectSE getClientInstance()
Session
Object
を返します。これは、別のジェネリクスパラメーターを追加した場合に必要になります。実装では、戻り値の型を絞り込む必要があります。Session<F>
の getClientInstance
public StringSE getHostPort()
Session
Session<F>
の getHostPort