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
This commit is contained in:
@@ -29,6 +29,7 @@ import java.util.HashMap;
|
|||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import com.samskivert.io.ByteArrayOutInputStream;
|
import com.samskivert.io.ByteArrayOutInputStream;
|
||||||
import com.samskivert.util.StringUtil;
|
import com.samskivert.util.StringUtil;
|
||||||
@@ -138,6 +139,14 @@ public abstract class ConfigRegistry
|
|||||||
return new ObjectInputStream(bin);
|
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.
|
* Contains all necessary info for a configuration object registration.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user