private ZeroLink getLinkObjectInternal(byte[] data, int outputformat)
	{
		
		ZeroLink link;
		switch(outputformat)
		{
		case Constants.JSON_FORMAT:
			link= Utils.parseJSON(getStringResponseInternal(data));
			break;
		case Constants.PLAIN_TEXT_FORMAT:
			link = new ZeroLink();
			link.setShortLinkUrl(getStringResponseInternal(data));
			break;
		case Constants.XML_FORMAT:
			link= Utils.parseXML(data);
			break;
		case Constants.QR_FORMAT:
		return null;
		default:
			link = Utils.parseJSON(getStringResponseInternal(data));
		}
		if(link.getErrorId()!= -1 && mErrorListener!=null)
			mErrorListener.onError(link.getErrorId(), link.getErrorMsg());
		return link;
	}