📄 syslogmessage.java
字号:
package com.ice.syslogd;public classSyslogMessage implements Cloneable { public static final String RCS_ID = "$Id: SyslogMessage.java,v 1.2 1998/07/29 02:15:10 time Exp $"; public static final String RCS_REV = "$Revision: 1.2 $"; public static final String RCS_NAME = "$Name: $"; public boolean isRepeat; public int facility; public int priority; public String timestamp; public String hostName; public String processName; public int processId; public String message; public String[] matchVars; private SyslogMessage() { super(); this.isRepeat = false; this.facility = 0; this.priority = 0; this.timestamp = null; this.hostName = null; this.processName = null; this.processId = 0; this.message = null; this.matchVars = null; } public SyslogMessage( int facility, int priority, String timestamp, String hostName, String processName, int processId, String message ) { super(); this.isRepeat = false; this.facility = facility; this.priority = priority; this.timestamp = timestamp; this.hostName = hostName; this.processName = processName; this.processId = processId; this.message = message; this.matchVars = null; } public Object clone() { SyslogMessage cObj = null; try { cObj = (SyslogMessage) super.clone(); } catch ( CloneNotSupportedException ex ) { cObj = new SyslogMessage(); } cObj.message = new String( this.message ); cObj.hostName = new String( this.hostName ); cObj.timestamp = new String( this.timestamp ); cObj.processName = new String( this.processName ); if ( this.matchVars != null ) { cObj.matchVars = new String[ this.matchVars.length ]; for ( int i = 0 ; i < this.matchVars.length ; ++i ) cObj.matchVars[i] = new String( this.matchVars[i] ); } return cObj; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -