Code example for DataInput

Methods: readUTF

0
		out.writeUTF(message);
	} 
 
	@Override 
	public void fromStream(DataInput in) throws IOException {
        super.fromStream(in);
        message = in.readUTF();
	} 
} 
Experience pair programming with AI  Get Codota for Java