returns the contents of the linkmessage if it contains a byte array . if the message does not contain a byte array , throws illegalstateexception . concode_field_sep int offset concode_elem_sep Object contents concode_elem_sep int length concode_field_sep LinkMessage newDataMessage concode_elem_sep LinkMessage newDataMessage concode_elem_sep boolean containsLink concode_elem_sep LinkMessage newLinkMessage concode_elem_sep Object extract concode_elem_sep boolean containsString concode_elem_sep Link extractLink concode_elem_sep LinkMessage newStringMessage concode_elem_sep boolean containsData concode_elem_sep String extractString
byte [ ] function ( ) { if ( ! ( contents instanceof byte [ ] ) ) { throw new IllegalStateException ( ) ; } byte [ ] loc0 = ( byte [ ] ) contents ; if ( offset == 0 && length == loc0 . length ) { return loc0 ; } byte [ ] loc1 = new byte [ length ] ; System . arraycopy ( loc0 , offset , loc1 , 0 , length ) ; return loc1 ; }