public MBeanQuery readMBeanQuery ( InputStream in ) throws ConversionException , IOException , ClassNotFoundException { JSONObject json = parseObject ( in ) ; MBeanQuery ret = new MBeanQuery ( ) ; ret . objectName = readObjectName ( json . get ( N_OBJECTNAME ) ) ; Object queryExp = readSerialized ( json . get ( N_QUERYEXP ) ) ; if ( queryExp != null && ! ( queryExp instanceof QueryExp ) ) { throwConversionException ( "readMBeanQuery() receives an instance that's not a QueryExp." , json . get ( N_QUERYEXP ) ) ; } ret . queryExp = ( QueryExp ) queryExp ; ret . className = readStringInternal ( json . get ( N_CLASSNAME ) ) ; return ret ; }
Decode a JSON document to retrieve an MBeanQuery instance .