static RevisionDataInputStream wrap ( InputStream inputStream ) throws IOException { int bound = BitConverter . readInt ( inputStream ) ; return new RevisionDataInputStream ( new BoundedInputStream ( inputStream , bound ) ) ; }
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 .