Code example for DataInputStream

Methods: readreadInt

0
		out.write(userAttBytes);
	} 
 
	@Override 
	public void read(DataInputStream in) throws IOException {
		byte[] userAttBytes = new byte[in.readInt()];
		in.read(userAttBytes);
		setAttributes(new String(userAttBytes, "UTF-8").split(","));
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE