Package com.mojang.realmsclient.client
Class FileDownload.DownloadCountingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
org.apache.commons.io.output.CountingOutputStream
com.mojang.realmsclient.client.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 ActionListenerlistener -
Constructor Summary
Constructors Constructor Description DownloadCountingOutputStream(OutputStream out) -
Method Summary
Modifier and Type Method Description protected voidafterWrite(int n)voidsetListener(ActionListener listener)Methods inherited from class org.apache.commons.io.output.CountingOutputStream
beforeWrite, getByteCount, getCount, resetByteCount, resetCountMethods inherited from class org.apache.commons.io.output.ProxyOutputStream
close, flush, handleIOException, write, write, write
-
Field Details
-
Constructor Details
-
Method Details
-
setListener
-
afterWrite
- Overrides:
afterWritein classProxyOutputStream- Throws:
IOException
-