⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 q.java

📁 // pica客户端J2ME源码
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
			stringbuffer.append("<xroster>");
			stringbuffer.append(utils.b.b("no"));
			stringbuffer.append("</xroster>");
		} else
		if (s1.equals("msn.pica"))
			stringbuffer.append("<xroster>no</xroster>");
		stringbuffer.append("</query></iq>");
		e("login-im", "/raw.xml", stringbuffer.toString());
	}

	public final void c()
		throws IOException
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='get' to='cluster.pica'><query xmlns='pica:cluster:roomlist'/></iq>");
		e("getChatroom", "/raw.xml", stringbuffer.toString());
	}

	public final void d()
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='get' to='cluster.pica'><query xmlns='pica:cluster:clusterlist'/></iq>");
		e("getClusterRoomList", "/raw.xml", stringbuffer.toString());
	}

	public final void e()
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='get' to='game.pica'><query xmlns='pica:game:roomlist'/></iq>");
		e("getGameRoomList", "/raw.xml", stringbuffer.toString());
	}

	public final void d(String s1)
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<presence type='available' to='").append(s1).append("'>").append("<show>enter</show>").append("<icon>").append(Pica.am).append("</icon>").append("<v_stream>no</v_stream>").append("<v_msg>no</v_msg>").append("<unibrew>no</unibrew>").append("<pc>yes</pc>").append("<name>").append(utils.b.b(Pica.N)).append("</name>").append("</presence>");
		e("loginGameRoom", "/raw.xml", stringbuffer.toString());
	}

	public final void a(String s1, String s2)
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<presence type='unavailable' to='").append(s1).append("' roomid='").append(s2).append("'/>");
		e("logoutGameRoom", "/raw.xml", stringbuffer.toString());
	}

	public final void e(String s1)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<presence type='available' to='");
		stringbuffer.append(s1 + "'>");
		stringbuffer.append("<show>enter</show>");
		stringbuffer.append("<icon>" + Pica.am + "</icon>");
		stringbuffer.append("<v_stream>no</v_stream>");
		stringbuffer.append("<v_msg>no</v_msg>");
		stringbuffer.append("<unibrew>no</unibrew>");
		stringbuffer.append("<history>0</history>");
		stringbuffer.append("<pc>yes</pc>");
		stringbuffer.append("<name>" + utils.b.b(Pica.N) + "</name>");
		stringbuffer.append("</presence>");
		e("chatroom", "/raw.xml", stringbuffer.toString());
	}

	public final void a(String s1, String s2, String s3, String s4, String s5)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<message to='sp.pica'><x xmlns='pica:form' type='" + s1 + "' sid='" + s2 + "'><option name='" + utils.b.b(s3) + "' value='" + utils.b.b(s4) + "' to='" + utils.b.b(s5) + "'/></x></message>");
		e("channel", "/raw.xml", stringbuffer.toString());
	}

	public final void f()
		throws IOException
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<presence type='unavailable' to='" + utils.b.b(Pica.M) + "'/>");
		e("outChatroom", "/raw.xml", stringbuffer.toString());
	}

	public final void a(String s1, String s2, String s3, String s4)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<message to='" + utils.b.b(s1) + "' type='" + utils.b.b(s2) + "'>");
		if (s4 != null && s4.length() > 0 && (s3 == null || s3.length() == 0))
			stringbuffer.append("<body> </body>");
		else
			stringbuffer.append("<body>" + utils.b.b(s3) + "</body>");
		if (s4 != null && s4.length() > 0)
		{
			stringbuffer.append("<x xmlns='jabber:x:oob'>");
			stringbuffer.append("<url>" + s4 + "</url>");
			stringbuffer.append("<desc></desc>");
			stringbuffer.append("</x>");
		}
		stringbuffer.append("</message>");
		e("message", "/raw.xml", stringbuffer.toString());
	}

	public final void b(String s1, String s2, String s3, String s4)
		throws IOException
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<message").append(" to='").append(utils.b.b(s1)).append("' type='").append(utils.b.b(s2)).append("'");
		if (s1.indexOf("@game.pica") != -1)
			stringbuffer.append(" roomid='").append(utils.b.b(Pica.aS)).append("'");
		if (s4 != null && s4.length() > 0 && (s3 == null || s3.length() == 0))
			stringbuffer.append("><body> </body>");
		else
			stringbuffer.append("><body>" + utils.b.b(s3) + "</body>");
		if (s4 != null && s4.length() > 0)
		{
			stringbuffer.append("<x xmlns='jabber:x:oob'>");
			stringbuffer.append("<url>" + s4 + "</url>");
			stringbuffer.append("<desc></desc>");
			stringbuffer.append("</x>");
		}
		stringbuffer.append("</message>");
		e("message", "/raw.xml", stringbuffer.toString());
	}

	public final void a(String s1, String s2, boolean flag, String s3, String s4, String s5)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='get' to='search.pica'><query xmlns='jabber:iq:newsearch'>");
		if (s1 != null)
			stringbuffer.append("<jid>" + utils.b.b(s1) + "@pica</jid>");
		if (s2 != null)
			stringbuffer.append("<nick>" + utils.b.b(s2) + "</nick>");
		if (flag)
			stringbuffer.append("<online/>");
		if (s3 != null)
			stringbuffer.append("<region>" + utils.b.b(s3) + "</region>");
		if (s4 != null)
			stringbuffer.append("<age>" + utils.b.b(s4) + "</age>");
		if (s5 != null)
			stringbuffer.append("<sex>" + utils.b.b(s5) + "</sex>");
		stringbuffer.append("</query></iq>");
		e("search", "/raw.xml", stringbuffer.toString());
	}

	public final void f(String s1)
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='get' to='");
		stringbuffer.append(utils.b.b(s1));
		stringbuffer.append("' version='2'><query xmlns='vcard-temp'/></iq>");
		e("vcard", "/raw.xml", stringbuffer.toString());
	}

	public final void a(String s1, String s2, String s3, String s4, String s5, int i1, String s6)
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='set' to='" + utils.b.b(s1) + "'>");
		stringbuffer.append("<query xmlns='vcard-temp'><NICKNAME>" + utils.b.b(s2) + "</NICKNAME><ADR><REGION>" + utils.b.b(s3) + "</REGION>");
		stringbuffer.append("<PCODE>" + utils.b.b(s4) + "</PCODE></ADR><ROLE>" + utils.b.b(s5) + "</ROLE><DESC>" + utils.b.b(s6) + "</DESC><ICON>" + i1 + "</ICON></query></iq>");
		e("vcard", "/raw.xml", stringbuffer.toString());
	}

	private void m()
		throws Exception
	{
		e("logout", "/logout-sid.xml", null);
	}

	public final void g()
		throws Exception
	{
		if (!d)
		{
			return;
		} else
		{
			m();
			d = false;
			b = true;
			return;
		}
	}

	public final void b(String s1, String s2, String s3, String s4, String s5)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<message to='" + utils.b.b(s1) + "'>");
		if (s2 != null && s2.length() > 0)
			stringbuffer.append("<subject>" + utils.b.b(s2) + "</subject>");
		stringbuffer.append("<body>" + utils.b.b(s3) + "</body>");
		if (s4 != null && s4.length() > 0)
			stringbuffer.append("<thread>" + utils.b.b(s4) + "</thread>");
		if (s5 != null && s5.length() > 0)
		{
			stringbuffer.append("<x xmlns='jabber:x:oob'>");
			stringbuffer.append("<url>" + s5 + "</url>");
			stringbuffer.append("<desc></desc>");
			stringbuffer.append("</x>");
		}
		stringbuffer.append("</message>");
              //  System.out.println("message:"+stringbuffer.toString());
		e("message", "/raw.xml", stringbuffer.toString());
	}

	public final void b(String s1, String s2)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<message to='" + utils.b.b(s1) + "'>");
		stringbuffer.append("<body>" + utils.b.b(s2) + "</body>");
		stringbuffer.append("<subject>recommendation</subject>");
		stringbuffer.append("</message>");
		e("invite", "/raw.xml", stringbuffer.toString());
	}

	public final void g(String s1)
		throws Exception
	{
		e("modifyPassword", "/raw.xml", "<iq type='set' to='pica'><query xmlns='jabber:iq:register'><username>" + w.ls + "</username>" + "<password>" + utils.b.b(s1) + "</password></query></iq>");
	}

	public final void c(String s1, String s2)
		throws Exception
	{
		e("modifyGroup", "/raw.xml", "<iq type='set'><query xmlns='jabber:iq:newgroup'><item oldgroup='" + s1 + "' newgroup='" + s2 + "'/></query></iq>");
	}

	public final void a(String s1, String s2, String s3, String s4, int i1)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<presence");
		if (s2 != null)
			stringbuffer.append(" type='" + utils.b.b(s2) + "'");
		if (s1 != null)
			stringbuffer.append(" to='" + utils.b.b(s1) + "'");
		stringbuffer.append(">");
		if (s3 != null)
			stringbuffer.append("<show>" + utils.b.b(s3) + "</show>");
		if (s4 != null)
			stringbuffer.append("<status>" + utils.b.b(s4) + "</status>");
		if (i1 != 0)
			stringbuffer.append("<priority>" + utils.b.b(Integer.toString(i1)) + "</priority>");
		stringbuffer.append("</presence>");
		e("presence", "/raw.xml", stringbuffer.toString());
	}

	public final void c(String s1, String s2, String s3, String s4)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='set'><query xmlns='jabber:iq:roster'><item jid='" + utils.b.b(s1) + "'");
		if (s2 != null)
			stringbuffer.append(" name='" + utils.b.b(s2) + "'");
		else
			stringbuffer.append(" name=''");
		if (s4 != null)
			stringbuffer.append(" subscription='" + utils.b.b(s4) + "'");
		stringbuffer.append(">");
		if (s3 != null)
			stringbuffer.append("<group>" + utils.b.b(s3) + "</group>");
		stringbuffer.append("</item></query></iq>");
		e("contact", "/raw.xml", stringbuffer.toString());
	}

	public final void h()
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq id='roster' type='get'><query xmlns='jabber:iq:roster'></query></iq>");
		synchronized (i)
		{
			pica.b b1 = new pica.b("roster", "/raw.xml", stringbuffer.toString());
			i.insertElementAt(b1, 0);
			b1 = new pica.b("cache", "/cache.xml", null);
			i.insertElementAt(b1, 1);
		}
		Thread.yield();
		(stringbuffer = new StringBuffer()).append("<iq type='get' to='pica'><query xmlns='jabber:iq:picazone'><lang>cn</lang><category>");
		stringbuffer.append("128K");
		stringbuffer.append("</category></query></iq>");
		stringbuffer.append("<iq type='get' to='pica'><query xmlns='jabber:iq:autoupdate'><source>");
		stringbuffer.append(pica.Pica.b);
		stringbuffer.append("</source></query></iq>");
		stringbuffer.append("<iq type='get'><query xmlns='jabber:iq:blacklist'/></iq>");
		stringbuffer.append("<iq type='get' to='cluster.pica'><query xmlns='pica:cluster:category'/></iq>");
		stringbuffer.append("<iq type='get' to='cluster.pica'><query xmlns='pica:cluster:clusterlist'/></iq>");
		stringbuffer.append("<iq type='get' to='cluster.pica'><query xmlns='pica:cluster:roomlist'/></iq>");
		stringbuffer.append("<iq type='get' to='game.pica'><query xmlns='pica:game:roomlist'/></iq>");
		e("combo", "/raw.xml", stringbuffer.toString());
	}

	public final void d(String s1, String s2)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<iq type='" + s1 + "'");
		stringbuffer.append(" to='private%cast@sp.pica'");
		stringbuffer.append(">");
		stringbuffer.append("<query xmlns='pica:cast:casturl'>");
		stringbuffer.append("<item jid=");
		stringbuffer.append("'" + s2 + "'");
		stringbuffer.append("/>");
		stringbuffer.append("</query>");
		stringbuffer.append("</iq>");
		e("FriendSpace", "/raw.xml", stringbuffer.toString());
	}

	public final void d(String s1, String s2, String s3, String s4)
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<message");
		stringbuffer.append(" to='" + s1 + "' >");
		stringbuffer.append("<subject>" + utils.b.b(s2) + "</subject>");
		stringbuffer.append("<body>" + utils.b.b(s3) + "</body>");
		stringbuffer.append("<tag>" + utils.b.b(s4) + "</tag>");
		stringbuffer.append("</message>");
		e("individualSpace", "/raw.xml", stringbuffer.toString());
	}

	public final void e(String s1, String s2)
		throws Exception
	{
		StringBuffer stringbuffer;
		(stringbuffer = new StringBuffer()).append("<presence type='" + s1 + "'");
		if (s2 != null)
			stringbuffer.append(" to='" + utils.b.b(s2) + "'");
		stringbuffer.append(">");
		if (Pica.i != null)
		{
			stringbuffer.append("<show>");
			stringbuffer.append(Pica.i);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -