mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Add a pair of methods to help optimize countingmessagestream
This commit is contained in:
parent
604e532879
commit
4f63a3de24
@ -21,4 +21,10 @@ public class CountingOutputStream extends OutputStream {
|
|||||||
public void write(int oneByte) throws IOException {
|
public void write(int oneByte) throws IOException {
|
||||||
mCount++;
|
mCount++;
|
||||||
}
|
}
|
||||||
|
public void write(byte b[], int offset, int len) throws IOException {
|
||||||
|
mCount += len;
|
||||||
|
}
|
||||||
|
public void write(byte[] b) throws IOException {
|
||||||
|
mCount += b.length;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user