Code example for ObjectInput

Methods: readBooleanreadBytereadCharreadDoublereadFloatreadIntreadLongreadShortreadUTFreadObject

0
 
		out.writeObject(externalizableBeanArrayValue);
	} 
 
	public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
		nullValue = in.readObject();
		 
		booleanValue = in.readBoolean();
		 
		charValue = in.readChar();
		 
		byteValue = in.readByte();
		shortValue = in.readShort();
		intValue = in.readInt();
		longValue = in.readLong();
		 
		floatValue = in.readFloat();
		doubleValue = in.readDouble();
 
		booleanObjectValue = (Boolean)in.readObject();
		 
		charObjectValue = (Character)in.readObject();
		 
		byteObjectValue = (Byte)in.readObject();
		shortObjectValue = (Short)in.readObject();
		intObjectValue = (Integer)in.readObject();
		longObjectValue = (Long)in.readObject();
		 
		floatObjectValue = (Float)in.readObject();
		doubleObjectValue = (Double)in.readObject();
		 
		stringValue = in.readUTF();
		dateValue = (Date)in.readObject();
		 
		enumValue = (Thread.State)in.readObject();
		byteArrayValue = (byte[])in.readObject();
		 
		thisValue = (ExternalizableBean)in.readObject();
		otherBeanValue = (ExternalizableBean)in.readObject();
		 
		externalizableBeanArrayValue = (ExternalizableBean[])in.readObject();
	} 
 
	@Override 
	public boolean equals(Object obj) { 
		if (!(obj instanceof ExternalizableBean)) 
Contextual code suggestions in your IDE  Get Codota for Java