protected void ensureInflated ( ) { if ( compressed != null ) { try { ByteArrayInputStream deflated = new ByteArrayInputStream ( compressed ) ; DataInput inflater = new DataInputStream ( new InflaterInputStream ( deflated ) ) ; readFieldsCompressed ( inflater ) ; compressed = null ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } } }
Must be called by all methods which access fields to ensure that the data has been uncompressed .