ByteArrayInputStream byteStream = new ByteArrayInputStream(data); dataStream = new DataInputStream(byteStream);
return dataStream;
throw new IllegalStateException();