Code example for ObjectInput

Methods: readIntreadObject

0
     * Rekease event 
     */ 
    protected abstract void releaseInternal(); 
 
	public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
		type = (Type) in.readObject();
		timestamp = in.readInt();
	} 
 
	public void writeExternal(ObjectOutput out) throws IOException {
		out.writeObject(type);
		out.writeInt(timestamp);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE