public BindResp bindResp(byte[] b) throws PDUStringException {
        BindResp resp = new BindResp();
        SequentialBytesReader reader = new SequentialBytesReader(b);
        assignHeader(resp, reader);
        if (resp.getCommandLength() > 16 && resp.getCommandStatus() == 0) {
            resp.setSystemId(reader.readCString());
            StringValidator.validateString(resp.getSystemId(),
                    StringParameter.SYSTEM_ID);

            resp.setOptionalParameters(readOptionalParameters(reader));
        }
        return resp;
    }
public BindResp bindResp ( byte [ ] b ) throws PDUStringException { BindResp resp = new BindResp ( ) ; SequentialBytesReader reader = new SequentialBytesReader ( b ) ; assignHeader ( resp , reader ) ; if ( resp . getCommandLength ( ) > 16 && resp . getCommandStatus ( ) == 0 ) { resp . setSystemId ( reader . readCString ( ) ) ; StringValidator . validateString ( resp . getSystemId ( ) , StringParameter . SYSTEM_ID ) ; resp . setOptionalParameters ( readOptionalParameters ( reader ) ) ; } return resp ; }
/*
(non-Javadoc)

@see org.jsmpp.util.PDUDecomposer#bindResp(byte[])