private boolean readChunkSize () {
		try {
			InputStream inputStream = getInputStream();
			for (int offset = 0, result = 0; offset < 32; offset += 7) {
				int b = inputStream.read();
				if (b == -1) return false;
				result |= (b & 0x7F) << offset;
				if ((b & 0x80) == 0) {
					chunkSize = result;
					if (TRACE && chunkSize > 0) trace("kryo", "Read chunk: " + chunkSize);
					return true;
				}
			}
		} catch (IOException ex) {
			throw new KryoException("Unable to read chunk size.", ex);
		}
		throw new KryoException("Unable to read chunk size: malformed integer");
	}
private boolean readChunkSize ( ) { try { InputStream inputStream = getInputStream ( ) ; for ( int offset = 0 , result = 0 ; offset < 32 ; offset += 7 ) { int b = inputStream . read ( ) ; if ( b == - 1 ) return false ; result |= ( b & 0x7F ) << offset ; if ( ( b & 0x80 ) == 0 ) { chunkSize = result ; if ( TRACE && chunkSize > 0 ) trace ( "kryo" , "Read chunk: " + chunkSize ) ; return true ; } } } catch ( IOException ex ) { throw new KryoException ( "Unable to read chunk size." , ex ) ; } throw new KryoException ( "Unable to read chunk size: malformed integer" ) ; }
@return false if the end of the stream was reached.