Initial commit from SVN.
This commit is contained in:
23
Common/src/com/common/io/IExternalizable.java
Normal file
23
Common/src/com/common/io/IExternalizable.java
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 1999,2005 Declarative Engineering LLC.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Declarative Engineering LLC
|
||||
* verson 1 which accompanies this distribution, and is available at
|
||||
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
||||
*/
|
||||
package com.common.io;
|
||||
|
||||
public interface IExternalizable {
|
||||
public static final Object NULL_VALUE = new Object();
|
||||
/**
|
||||
* Reads this object from the given stream.
|
||||
* @param in The input stream to read this object from.
|
||||
* @return The replacement object if applicable. Allows the read object to replace its self with an alternate. Useful if the object already exists as an identifier somewhere. If null then the stream will assume this instance is the result.
|
||||
*/
|
||||
public Object readExternal(IObjectInputStream in) throws java.io.IOException, ClassNotFoundException;
|
||||
/**
|
||||
* Writes this object to the given stream.
|
||||
* @param out The output stream to write this object to.
|
||||
*/
|
||||
public void writeExternal(IObjectOutputStream out) throws java.io.IOException;
|
||||
}//IExternalizable//
|
||||
Reference in New Issue
Block a user