public static SearchResponse from ( final KNXnetIPHeader h , final byte [ ] data , final int offset ) throws KNXFormatException { final int svcType = h . getServiceType ( ) ; if ( svcType != KNXnetIPHeader . SEARCH_RES && svcType != KNXnetIPHeader . SearchResponse ) throw new KNXIllegalArgumentException ( "not a search response" ) ; return new SearchResponse ( svcType , data , offset , h . getTotalLength ( ) - h . getStructLength ( ) ) ; }
Creates a new search response from a byte array .