public final byte[] toByteArray()
	{
		final ByteArrayOutputStream os = new ByteArrayOutputStream(HPAI_SIZE);
		os.write(length);
		os.write(hostprot);
		os.write(address, 0, address.length);
		os.write(port >> 8);
		os.write(port);
		return os.toByteArray();
	}
public final byte [ ] toByteArray ( ) { final ByteArrayOutputStream os = new ByteArrayOutputStream ( HPAI_SIZE ) ; os . write ( length ) ; os . write ( hostprot ) ; os . write ( address , 0 , address . length ) ; os . write ( port > > 8 ) ; os . write ( port ) ; return os . toByteArray ( ) ; }
Returns the byte representation of the whole HPAI structure.
<p>

@return byte array containing structure