Decodes link identity from legacy id.

@return decoded link identity decoded from legacy id.
487409
private String getIdentityFromLegacyId() throws CharacterCodingException {
        byte[] data = legacyId;
        int len = Util.toShort(data, 1);
        return Util.decodeString(data, 3, len);
    }
525929
public <U extends ODataEntity<?>> LinkInfo<U> getLink(String rel) {
        for (Object child : entry.getEntryChildren()) {

            LinkType link = linkFromChild(child);
            if (link != null && link.getRel().equals(rel)) {
                return new LinkInfo<U>(link);
            }
        }
        return null;
    }
787019
@InterfaceAudience.Public
    public String getDocumentId() {
        // Get the doc id from either the embedded document contents, or the '_id' value key.
        // Failing that, there's no document linking, so use the regular old _sourceDocID
        String docID = null;
        if (documentRevision != null)
            docID = documentRevision.getDocID();
        if (docID == null) {
            if (value != null) {
                if (value instanceof Map) {
                    Map<String, Object> props = (Map<String, Object>) value;
                    docID = (String) props.get("_id");
                }
            }
        }
        if (docID == null)
            docID = sourceDocID;
        return docID;
    }
263159
public Type getLink()
        throws CacheReloadException
    {
        if (this.link == null) {
            Attribute.LOG.error("Access on Attribute Link without parent defintion: {}", this);
        }
        return Type.get(this.link);
    }
746757
public function toUnicode()
    {
        if ($this->isIdn() && $this->isAscii())
            $this->host = (new IdnaConvert())->decode($this->host);
    }
1218729
public ChaincodeID getChaincodeID() throws InvalidArgumentException {

        try {

            if (chaincodeID == null) {

                Header header = Header.parseFrom(proposal.getHeader());
                Common.ChannelHeader channelHeader = Common.ChannelHeader.parseFrom(header.getChannelHeader());
                ChaincodeHeaderExtension chaincodeHeaderExtension = ChaincodeHeaderExtension.parseFrom(channelHeader.getExtension());
                chaincodeID = new ChaincodeID(chaincodeHeaderExtension.getChaincodeId());
            }
            return chaincodeID;

        } catch (Exception e) {
            throw new InvalidArgumentException(e);
        }

    }
1212850
private static String decodeUrl(String endcodedUrl) {
		String imageSize = "z"; // [mstzb]
		String[] parts = endcodedUrl.split("_");
		String farmId = parts[0];
		String serverId = parts[1];
		String identidier = parts[2];
		String secret = parts[3];
		// String isVideo = parts[4];

		String url = "https://farm" + farmId + ".staticflickr.com/" + serverId + "/" + identidier + "_"
				+ secret + "_" + imageSize + ".jpg";
		return url;
	}
767079
public function getReadableIdentifier()
    {
        return sprintf(
            '%s%s',
            $this->getField('ID'),
            !empty(trim($this->getField('Title'))) ? '-' . urlencode(strtolower(trim($this->getField('Title')))) : ''
        );
    }
1183886
private final String getIdAndName() {
        StringBuilder sb = new StringBuilder().append(id);
        if (identityName != null && identityName.length() > 0)
            sb.append(" (").append(identityName).append(')');
        return sb.toString();
    }
1171675
public String makeUniqueJavaIdentifier(String id)
    {
        String jid = makeJavaId(id);
        String old = map.put(jid, id);
        if (old != null)
        {
            String oid = jid;
            for (int ii=1;old != null;ii++)
            {
                jid = oid+ii;
                old = map.put(jid, id);
            }
        }
        return jid;
    }
772132
@Nullable
    public String getIdentityPublicKey() {
        RSAPublicKey key = InstanceIdentityProvider.RSA.getPublicKey();
        return key == null ? null : new String(Base64.encodeBase64(key.getEncoded()), Charset.forName("UTF-8"));
    }
679819
public final boolean unlink()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlink", _positionString());

        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "cursor count = " + _cursorCount);

        boolean unlinked = false;
        LinkedList parent = _parent;
        if (null != parent)
        {
            synchronized(parent)
            {
                if (LinkState.LINKED == _state)
                {
                    _state = LinkState.LOGICALLY_UNLINKED;
                    _tryUnlink();
                    unlinked = true;
                }
                else
                {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "unlink while " + _state);
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "unlink", new Object[] { Boolean.valueOf(unlinked), _positionString()});
        return unlinked;
    }
931651
public static String decodeUrlIso(String stringToDecode) {
        try {
            return URLDecoder.decode(stringToDecode, "ISO-8859-1");
        } catch (UnsupportedEncodingException e1) {
            throw new RuntimeException(e1);
        }
    }
530438
private Channel unlinkFromOrigin() {
        if (originResponseReceiver != null) {
            originResponseReceiver.unlinkFromClientRequest();
            originResponseReceiver = null;
        }

        if (concurrentReqCount > 0) {
            origin.recordProxyRequestEnd();
            concurrentReqCount--;
        }

        Channel origCh = null;
        if (originConn != null) {
            origCh = originConn.getChannel();
            originConn = null;
        }
        return origCh;
    }
727187
public Link getLink() {
        final String link = headers.getFirst(LINK);
        if (link != null) {
            return Link.valueOf(link);
        }
        return null;
    }
471353
public String generarIdentificador( ) {
        String UUID = Long.toHexString(System.currentTimeMillis());
        UUID = UUID.concat(obtenerDireccionIP());
        UUID = UUID.concat(identityHashCode);
        UUID = UUID.concat(Integer.toHexString(_oAleatorioSeguro.nextInt()));
        return UUID;
    }
1337860
private static int generateCompatViewId() {
        for (; ; ) {
            final int result = sNextGeneratedId.get();
            int newValue = result + 1;
            /**
             * ID number larger than 0x00FFFFFF is reserved for static views defined in the /res xml files.
             * Android doesn't want you to use 0 as a view's id, and it needs to be flipped before 0x01000000 to avoid
             * the conflicts with static resource IDs
             */
            if (newValue > 0x00FFFFFF) {
                newValue = 1; // Roll over to 1, not 0.
            }
            if (sNextGeneratedId.compareAndSet(result, newValue)) {
                return result;
            }
        }
    }