From 815f7b5b44b702a12779342b6e335be353a31d1b Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Tue, 28 Oct 2008 22:47:13 +0000 Subject: [PATCH] Allow the output stream to be overridden just like the input stream on the config registry. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5481 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/admin/server/ConfigRegistry.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java/com/threerings/admin/server/ConfigRegistry.java b/src/java/com/threerings/admin/server/ConfigRegistry.java index 23e74d494..aab21ad63 100644 --- a/src/java/com/threerings/admin/server/ConfigRegistry.java +++ b/src/java/com/threerings/admin/server/ConfigRegistry.java @@ -29,6 +29,7 @@ import java.util.HashMap; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; +import java.io.OutputStream; import com.samskivert.io.ByteArrayOutInputStream; import com.samskivert.util.StringUtil; @@ -138,6 +139,14 @@ public abstract class ConfigRegistry return new ObjectInputStream(bin); } + /** + * Create an ObjectOutputStream to write serialized config entries. + */ + protected ObjectOutputStream createObjectOutputStream (OutputStream bin) + { + return new ObjectOutputStream(bin); + } + /** * Contains all necessary info for a configuration object registration. */