byteStream = new ByteArrayOutputStream(); dataStream = new DataOutputStream(byteStream);
return byteStream.toByteArray();
throw new IllegalStateException();
return dataStream;