Class FtpSlowOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.exoplatform.frameworks.ftpclient.data.FtpSlowOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class FtpSlowOutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description FtpSlowOutputStream(OutputStream nativeOutputStream, int bytesPerSec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()protected voidtryWaiting()voidwrite(byte[] dataBytes)voidwrite(byte[] dataBytes, int offset, int len)voidwrite(int dataByte)-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
FtpSlowOutputStream
public FtpSlowOutputStream(OutputStream nativeOutputStream, int bytesPerSec)
-
-
Method Detail
-
tryWaiting
protected void tryWaiting()
-
write
public void write(int dataByte) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] dataBytes) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] dataBytes, int offset, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-