/*************************************** * * * JBoss: The OpenSource J2EE WebOS * * * * Distributable under LGPL license. * * See terms of license at gnu.org. * * * ***************************************/ package org.jboss.util.stream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.OutputStream; /** * An ObjectOutputStream that is meant for appending onto an * existing stream written to by a non AppendObjectOutputStream * * @version $Revision: 1.1 $ * @author Jason Dillon */ public class AppendObjectOutputStream extends ObjectOutputStream { /** * Construct a new AppendObjectOutputStream. * * @param out An output stream. * * @throws IOException Any exception thrown by the underlying OutputStream. */ public AppendObjectOutputStream(OutputStream out) throws IOException { super(out); } /** * Reset the stream, does not write headers. * * @throws IOException Any exception thrown by the underlying OutputStream. */ protected void writeStreamHeader() throws IOException { this.reset(); } }