List of usage examples for java.io Externalizable readExternal
void readExternal(ObjectInput in) throws IOException, ClassNotFoundException;
From source file:org.codehaus.wadi.core.util.Utils.java
public static Externalizable setContent(Externalizable object, byte[] content, Streamer streamer) throws IOException, ClassNotFoundException { ByteArrayInputStream bais = new ByteArrayInputStream(content); ObjectInput oi = streamer.getInputStream(bais); object.readExternal(oi); oi.close();//from w w w . j a va 2s.c om return object; }