📄 countingoutputstream.java
字号:
package com.anotherbigidea.io;
import java.io.OutputStream;
/**
* An OutputStream that provides a count of the bytes written.
*
* @author nick
*/
public abstract class CountingOutputStream extends OutputStream {
protected int mCount = 0;
/**
* @return the bytes-written counter
*/
public int getCount() {
return mCount;
}
/**
* Set the counter.
*/
public void setCount( int count ) {
mCount = count;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -