accountinvokerimpl.java
来自「打印管理程序,测试完全通过.windows开发环境.」· Java 代码 · 共 34 行
JAVA
34 行
package jp.co.ntl.swing.ext.history.account;
import java.io.File;
import java.util.Vector;
import jp.co.ntl.Net;
import jp.co.ntl.Util;
import jp.co.ntl.NetworkException;
import jp.co.ntl.ServerException;
import jp.co.ntl.TimeOutException;
import jp.co.ntl.SpoolerException;
import jp.co.ntl.swing.ext.InvokerUtil;
public class AccountInvokerImpl extends AccountInvoker {
private InvokerUtil iu;
AccountInvokerImpl(Net net) {
this.iu = new InvokerUtil(net);
}
public Vector getAccountList() throws NetworkException, ServerException, TimeOutException, SpoolerException {
return iu.serverAccessRetVector(Net.accountServletName, Net.CMD_GetAccountList);
}
public boolean downloadAccount(File accountFile) throws NetworkException, ServerException, TimeOutException, SpoolerException {
return iu.serverAccessDownload(Net.accountServletName, Net.CMD_DownloadAccount, accountFile, Util.getPreferenceInfo().getAuthType());
}
public boolean deleteAccounts() throws NetworkException, ServerException, TimeOutException, SpoolerException {
iu.serverAccessRetVoid(Net.accountServletName, Net.CMD_DeleteAccount);
return true;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?