01: package org.jgroups.util;
02:
03: import java.io.DataOutputStream;
04: import java.io.OutputStream;
05:
06: /**
07: * @author Bela Ban
08: * @version $Id: ExposedDataOutputStream.java,v 1.1 2005/07/25 15:53:37 belaban Exp $
09: */
10: public class ExposedDataOutputStream extends DataOutputStream {
11: /**
12: * Creates a new data output stream to write data to the specified
13: * underlying output stream. The counter <code>written</code> is
14: * set to zero.
15: *
16: * @param out the underlying output stream, to be saved for later
17: * use.
18: * @see java.io.FilterOutputStream#out
19: */
20: public ExposedDataOutputStream(OutputStream out) {
21: super (out);
22: }
23:
24: public void reset() {
25: written = 0;
26: }
27: }
|