public DataInput getDataInput() {
    ByteBuffer bb = ByteBuffer.wrap(baos.toByteArray());
    ByteBufferInputStream bbis = new ByteBufferInputStream(bb);
    return bbis;
  }
Returns a <code>DataInput</code> to read from
geode-core/src/test/java/org/apache/geode/internal/ByteArrayData.java