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 intprivate final AESemaphoreprivate final LinkedList<byte[]> private booleanprivate longprivate int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
available
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-