public byte []
toByteArray() {
	byte [] out = new byte[pos];
	System.arraycopy(array, 0, out, 0, pos);
	return out;
}
Returns a byte array containing the current contents of the stream.
src/main/java/core/org/xbill/DNS/DNSOutput.java