📄 i_progresslistener.java
字号:
/*------------------------------------------------------------------------------Name: I_ProgressListener.javaProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.util.xbformat;/** * This interface is used to inform listeners about incoming data. * @author <a href="mailto:xmlBlaster@marcelruff.info">Marcel Ruff</a>. */public interface I_ProgressListener{ /** * Notification about the current data receive progress. * <p /> * The interval of notification is arbitrary and not guaranteed, * each protocol driver may choose other strategies. * @param name A qualifying name about the incoming request, can be empty. * @param currBytesRead The number of bytes received up to now * @param numBytes The overall number of bytes */ void progressRead(String name, long currBytesRead, long numBytes); /** * Notification about the current data send progress. * <p /> * The interval of notification is arbitrary and not guaranteed, * each protocol driver may choose other strategies. * @param name A qualifying name about the incoming request, can be empty. * @param currBytesWritten The number of bytes send up to now * @param numBytes The overall number of bytes */ void progressWrite(String name, long currBytesWritten, long numBytes); /** * Used to clear current (ongoing) write operations. This is invoked if an exception occurs * when writing. */ public void clearCurrentWrites(); /** * Used to clear current (ongoing) read operations. This is invoked if an exception occurs * when writing. */ public void clearCurrentReads(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -