code: static RevisionDataInputStream wrap(InputStream inputStream) throws IOException {
          int bound = BitConverter.readInt(inputStream);
          return new RevisionDataInputStream(new BoundedInputStream(inputStream, bound));
      }
docs: Creates a new instance of the RevisionDataInputStream class. Upon a successful call to this method, 4 bytes
  will have been read from the InputStream representing the expected length of the serialization.
  
  @param inputStream The InputStream to wrap.
  @throws IOException If an IO Exception occurred.