KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > util > stream > AppendObjectOutputStream


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9
10 package org.jboss.util.stream;
11
12 import java.io.IOException JavaDoc;
13 import java.io.ObjectOutputStream JavaDoc;
14 import java.io.OutputStream JavaDoc;
15
16 /**
17  * An <code>ObjectOutputStream</code> that is meant for appending onto an
18  * existing stream written to by a non <code>AppendObjectOutputStream</code>
19  *
20  * @version <tt>$Revision: 1.1 $</tt>
21  * @author <a HREF="mailto:jason@planet57.com">Jason Dillon</a>
22  */

23 public class AppendObjectOutputStream
24    extends ObjectOutputStream JavaDoc
25 {
26    /**
27     * Construct a new AppendObjectOutputStream.
28     *
29     * @param out An output stream.
30     *
31     * @throws IOException Any exception thrown by the underlying OutputStream.
32     */

33    public AppendObjectOutputStream(OutputStream JavaDoc out) throws IOException JavaDoc {
34       super(out);
35    }
36
37    /**
38     * Reset the stream, does not write headers.
39     *
40     * @throws IOException Any exception thrown by the underlying OutputStream.
41     */

42    protected void writeStreamHeader() throws IOException JavaDoc {
43       this.reset();
44    }
45 }
46
Popular Tags