电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

数据挖掘DMS代码(JAVA)VIP免费

数据挖掘DMS代码(JAVA)_第1页
1/24
数据挖掘DMS代码(JAVA)_第2页
2/24
数据挖掘DMS代码(JAVA)_第3页
3/24
1 package com.tarena.dms; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.RandomAccessFile; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.util.Scanner; import javax.swing.JFrame; public class DMSClient { private DMSClientFrame frame; /** * 用于保存日志文件读取位置 */ private File positionFile; /** * 用readLogs 生成的文本日志文件 */ private File textLogFile; /** * 原始的 unix 日志文件 */ private File logFile; public static final int LOG_LENGTH=372; public static final short LOGIN = 7; public static final short LOGOUT =8; private Properties config; private int batch; private File matchedLogFile; private File loginFile; private String serverHost; private int serverPort; /** 2 * 利用构造器初始化对象属性 */ public DMSClient() { //读取配置文件,利用配置文件初始化参数对象 config=new Properties(); try { config.load(new FileInputStream("client.properties")); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } logFile = new File(config.getProperty("log.file")); positionFile=new File(config.getProperty("position.file")); textLogFile=new File(config.getProperty("text.log.file")); batch=Integer.parseInt(config.getProperty("batch")); matchedLogFile=new File(config.getProperty("matched.log.file")); loginFile=new File(config.getProperty("login.log.file")); serverHost=config.getProperty("server.ip"); serverPort=Integer.parseInt(config.getProperty("server.port")); } public void showReadLogsMsg(String msg){ if(frame==null){ System.out.println(msg); }else{ frame.showReadLogsMsg(msg); } } /** * 读取日志文件 */...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

数据挖掘DMS代码(JAVA)

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部