public abstract class BaseIOLog extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Date |
date |
protected static String |
DATE_FORMAT |
protected File |
file |
protected PrintWriter |
out |
protected StringBuilder |
sb |
protected SimpleDateFormat |
sdf |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected void |
createOut()
Create the Print Writer output
|
void |
input(byte[] b) |
void |
input(byte[] b,
int pos,
int len) |
void |
log(boolean input,
byte[] b) |
void |
log(boolean input,
byte[] b,
int pos,
int len) |
void |
log(String message) |
void |
output(byte[] b) |
void |
output(byte[] b,
int pos,
int len) |
protected abstract void |
sizeCheck()
Check the size of the logfile and perform adjustments
as necessary
|
protected final SimpleDateFormat sdf
protected PrintWriter out
protected final File file
protected final StringBuilder sb
protected final Date date
public BaseIOLog(File logFile)
protected void createOut()
public void close()
public void input(byte[] b)
public void input(byte[] b,
int pos,
int len)
public void output(byte[] b)
public void output(byte[] b,
int pos,
int len)
public void log(boolean input,
byte[] b)
public void log(boolean input,
byte[] b,
int pos,
int len)
public void log(String message)
protected abstract void sizeCheck()
Copyright © 2018. All rights reserved.