Package net.schmizz.sshj.sftp
Class RemoteFile.RemoteFileOutputStream
java.lang.Object
java.io.OutputStream
net.schmizz.sshj.sftp.RemoteFile.RemoteFileOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
RemoteFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private long
private final int
private final Queue
<Promise<Response, SFTPException>> -
Constructor Summary
ConstructorsConstructorDescriptionRemoteFileOutputStream
(long startingOffset) RemoteFileOutputStream
(long startingOffset, int maxUnconfirmedWrites) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
b
private final byte[] b -
maxUnconfirmedWrites
private final int maxUnconfirmedWrites -
unconfirmedWrites
-
fileOffset
private long fileOffset
-
-
Constructor Details
-
RemoteFileOutputStream
public RemoteFileOutputStream() -
RemoteFileOutputStream
public RemoteFileOutputStream(long startingOffset) -
RemoteFileOutputStream
public RemoteFileOutputStream(long startingOffset, int maxUnconfirmedWrites)
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-