1 25 package org.ofbiz.base.util; 26 27 import java.io.IOException ; 28 import java.io.OutputStream ; 29 30 31 38 public class OutputStreamByteCount extends OutputStream { 39 40 protected long byteCount = 0; 41 42 public OutputStreamByteCount() { 43 super(); 44 } 45 46 49 public void write(int arg0) throws IOException { 50 byteCount++; 51 } 52 53 public long getByteCount() { 54 return this.byteCount; 55 } 56 } 57 | Popular Tags |