Package net.minecraft.client.realms
Class FileDownload.DownloadCountingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
org.apache.commons.io.output.CountingOutputStream
net.minecraft.client.realms.FileDownload.DownloadCountingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- FileDownload
@Environment(CLIENT) class FileDownload.DownloadCountingOutputStream extends CountingOutputStream
-
Field Summary
Fields Modifier and Type Field Description private ActionListener
listener
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors Constructor Description DownloadCountingOutputStream(OutputStream out)
-
Method Summary
Modifier and Type Method Description protected void
afterWrite(int n)
void
setListener(ActionListener listener)
Methods inherited from class org.apache.commons.io.output.CountingOutputStream
beforeWrite, getByteCount, getCount, resetByteCount, resetCount
Methods inherited from class org.apache.commons.io.output.ProxyOutputStream
close, flush, handleIOException, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
listener
-
-
Constructor Details
-
DownloadCountingOutputStream
-
-
Method Details
-
setListener
-
afterWrite
- Overrides:
afterWrite
in classProxyOutputStream
- Throws:
IOException
-