private void readVersion ( InputStream is ) throws IOException { BytesReadInputStream bytesReadStream = new BytesReadInputStream ( is ) ; String version = DatatypeConverter . getString ( bytesReadStream ) ; m_offset += bytesReadStream . getBytesRead ( ) ; SynchroLogger . log ( "VERSION" , version ) ; String [ ] versionArray = version . split ( "\\." ) ; m_majorVersion = Integer . parseInt ( versionArray [ 0 ] ) ; }
Read the version number .