Package tv.hd3g.transfertfiles.ftp
Class StoppableOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- tv.hd3g.transfertfiles.ftp.StoppableOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class StoppableOutputStream extends FilterOutputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description StoppableOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStopped()voidsetStop()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.FilterOutputStream
close, flush
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
StoppableOutputStream
public StoppableOutputStream(OutputStream out)
-
-
Method Detail
-
setStop
public void setStop()
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
isStopped
public boolean isStopped()
-
-