Code example for ObjectInput

Methods: readLongreadUTFreadObject

0
		out.writeObject(headers);
	} 
 
	@Override 
	public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
		String contentString = in.readUTF();
		if (_NULL.equals(contentString)) {
			this.content = null;
		} 
		else { 
			this.content = new StringBuilder(contentString);
		} 
		renderTime = in.readLong();
		headers = (Map<String, String>) in.readObject();
	} 
 
	public String getContentType() {
		return getHeaders().get("Content-Type");
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java