1 package org.jgroups.util; 2 3 import java.io.BufferedOutputStream ; 4 import java.io.OutputStream ; 5 6 10 public class ExposedBufferedOutputStream extends BufferedOutputStream { 11 17 public ExposedBufferedOutputStream(OutputStream out) { 18 super(out); 19 } 20 21 30 public ExposedBufferedOutputStream(OutputStream out, int size) { 31 super(out, size); 32 } 33 34 public void reset(int size) { 35 count=0; 36 if(size > buf.length) { 37 buf=new byte[size]; 38 } 39 } 40 } 41 | Popular Tags |