Class MagnetConnection2.MagnetOutputStream
java.lang.Object
java.io.OutputStream
com.biglybt.core.util.protocol.magnet.MagnetConnection2.MagnetOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
MagnetConnection2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final AESemaphore
private final LinkedList
<byte[]> private boolean
private long
private int
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Field Details
-
buffers
-
available
private int available -
buffer_sem
-
closed
private boolean closed -
last_read
private long last_read -
read_active
private int read_active
-
-
Constructor Details
-
MagnetOutputStream
private MagnetOutputStream()
-
-
Method Details
-
timerCheck
private void timerCheck() -
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
available
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-