类 BaseIOLog
java.lang.Object
com.huangjian.modbus4j.sero.log.BaseIOLog
- 直接已知子类:
IOLog,RollingIOLog
Abstract BaseIOLog class.
-
字段概要
字段修饰符和类型字段说明protected final Dateprotected static final StringConstantDATE_FORMAT="yyyy/MM/dd-HH:mm:ss,SSS"protected final Fileprotected PrintWriterprotected final StringBuilderprotected final SimpleDateFormat -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()close.protected voidCreate the Print Writer outputvoidinput(byte[] b) input.voidinput(byte[] b, int pos, int len) input.voidlog(boolean input, byte[] b) log.voidlog(boolean input, byte[] b, int pos, int len) log.voidlog.voidoutput(byte[] b) output.voidoutput(byte[] b, int pos, int len) output.abstract voidabstract voidprotected abstract voidCheck the size of the logfile and perform adjustments as necessary
-
字段详细资料
-
DATE_FORMAT
ConstantDATE_FORMAT="yyyy/MM/dd-HH:mm:ss,SSS"- 另请参阅:
-
sdf
-
out
-
file
-
sb
-
date
-
-
构造器详细资料
-
BaseIOLog
Constructor for BaseIOLog.
- 参数:
logFile- aFileobject.
-
-
方法详细资料
-
createOut
protected void createOut()Create the Print Writer output -
close
public void close()close.
-
input
public void input(byte[] b) input.
- 参数:
b- an array ofobjects.引用无效
byte
-
input
public void input(byte[] b, int pos, int len) input.
- 参数:
b- an array ofobjects.引用无效
bytepos- a int.len- a int.
-
output
public void output(byte[] b) output.
- 参数:
b- an array ofobjects.引用无效
byte
-
output
public void output(byte[] b, int pos, int len) output.
- 参数:
b- an array ofobjects.引用无效
bytepos- a int.len- a int.
-
log
public void log(boolean input, byte[] b) log.
- 参数:
input- a boolean.b- an array ofobjects.引用无效
byte
-
log
public void log(boolean input, byte[] b, int pos, int len) log.
- 参数:
input- a boolean.b- an array ofobjects.引用无效
bytepos- a int.len- a int.
-
log
log.
- 参数:
message- aStringobject.
-
sendByte
-
readByte
-
sizeCheck
protected abstract void sizeCheck()Check the size of the logfile and perform adjustments as necessary
-