text
stringlengths
3
1.18M
/** * */ package com.yaodian100.sina.examples.account; import com.yaodian100.sina.weibo4j.RateLimitStatus; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class GetRateLimitStatus { /** * 获取当前用户API访问频率限制 * * ...
package com.yaodian100.sina.examples.account; import com.yaodian100.sina.weibo4j.User; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class VerifyCredentials { /** * @param args * args[0]和args[1]为通过GetToken...
package com.yaodian100.sina.examples.user; import java.util.List; import com.yaodian100.sina.weibo4j.User; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetFriends { /** * Usage: java -DWeibo4j.oauth.consumerKey=[consumer key] * -DWeibo4j.oauth.consumerSecret...
/** * */ package com.yaodian100.sina.examples.user; import java.util.List; import com.yaodian100.sina.weibo4j.User; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class GetFollowers { /** * 返回用户关注对象列表,并返回最新微博文章。...
/** * */ package com.yaodian100.sina.examples.user; import java.io.UnsupportedEncodingException; import com.yaodian100.sina.weibo4j.User; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class GetUserInfo { /** * ...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Comment; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetComments { /** * 返回指定微博的最新n条评论 * ...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Count; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetCounts { /** * 批量统计微博的评论数,转发数 * * @p...
/** * */ package com.yaodian100.sina.examples.timeline; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetUnread { /** * 获取当前用户Web未读消息数,包括@我的, 新评论,新私信,新粉丝数。 * * @param args */ public static void main(String[] args) { System.setProperty("weibo4j.o...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Paging; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Comment; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetCommentsByMe { /** * 获取当前用户发出的评论 * * @param args */ public static void m...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetMentions { /** * 获取@当前用户的微博列表 * * @param args */ public static void main(...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Comment; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetCommentsTimeline { /** * 按时间顺序返回最新n条发送及收到的评论 * * @param args */ public s...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class GetPublicTimeline { /** * 获取最新更新的公共微博...
/** * */ package com.yaodian100.sina.examples.timeline; import java.util.List; import com.yaodian100.sina.weibo4j.Paging; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class...
package com.yaodian100.sina.examples; import java.io.File; import com.yaodian100.sina.weibo4j.User; import com.yaodian100.sina.weibo4j.Weibo; public class OAuthUpdateProfile { /** * Usage: java -DWeibo4j.oauth.consumerKey=[consumer key] * -DWeibo4j.oauth.consumerSecret=[consumer secret] * Weibo4j...
/** * */ package com.yaodian100.sina.examples.ids; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class GetFollowersIDs { /** * 获取用户粉丝对象uid列表 * * @param args */ public static void main(String[] args) { ...
/** * */ package com.yaodian100.sina.examples.favorites; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class GetFavorites { /** * 获取当前用户的收藏列表 ...
/** * */ package com.yaodian100.sina.examples.favorites; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class CreateFavorite { /** * 添加收藏 * * @param args * ...
/** * */ package com.yaodian100.sina.examples.favorites; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; /** * @author sina * */ public class DestroyFavorite { /** * 删除当前用户收藏的微博...
package com.yaodian100.sina.examples; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; import com.yaodian100.sina.weibo4j.http.AccessToken; import com.yaodian100.sina.weibo4j.http.R...
/** * */ package com.yaodian100.sina.examples.statuses; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class DeleteStatus { /** * 删除一条微博信息 * * @param args */ public static void main(Str...
/** * */ package com.yaodian100.sina.examples.statuses; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author haidong * */ public class GetRepostTimeline { /** * 返回一条原创微博消息的最新n条转发微博消息。本接口无法对非原创微博进行查询。 * * @param ar...
/** * */ package com.yaodian100.sina.examples.statuses; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class UpdateStatus { /** * 发布一条微博信息 * * @param args */ public static void main(String[] args) { System.se...
/** * */ package com.yaodian100.sina.examples.statuses; import java.util.List; import com.yaodian100.sina.weibo4j.Comment; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class Reply { /** * 对一条微博评论信息进行回复 * * @par...
/** * */ package com.yaodian100.sina.examples.statuses; import java.util.List; import com.yaodian100.sina.weibo4j.Paging; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class GetStatus { /** * 获取单条ID的微博信息,作者信息将同时返回 * ...
/** * */ package com.yaodian100.sina.examples.statuses; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author haidong * */ public class RepostByMe { /** * 获取用户最新转发的n条微博消息 * * @param args */ public static void ...
/** * */ package com.yaodian100.sina.examples.statuses; import com.yaodian100.sina.weibo4j.Comment; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sinaWeibo * */ public class DeleteComment { /** * 删除评论,只能删除自己发布的评论 * * @param args ...
/** * */ package com.yaodian100.sina.examples.statuses; import com.yaodian100.sina.weibo4j.Comment; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class UpdateComment { /** * 对一条微博信息进行评论 * * @param args */ publi...
/** * */ package com.yaodian100.sina.examples.statuses; import java.util.List; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class ForwardStatus { /** * 根据微博ID和用户ID跳转到单条微博页面 * * @param args */ public static ...
/** * */ package com.yaodian100.sina.examples.statuses; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; /** * @author sina * */ public class Repost { /** * 转发一条微博信息 * * @param args */ public static void main(String[] args) { System.setPrope...
/** * */ package com.yaodian100.sina.examples; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; import com.yaodian100.sina.weibo4j.http.AccessToken; /** * @author * */ public class XAuthTest { /** * 注意调用XAuth需要申请权限,申请可参考http://open.weibo.com/wiki/i...
package com.yaodian100.sina.examples; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; import com.yaodian100.sina.weibo4j.http.AccessToken; import com.yaodian100.sina.weibo4j.http.RequestToken; public class WebOAuth { ...
package com.yaodian100.sina.examples; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; import com.yaodian100.sina.weibo4j.WeiboException; import com.yaodian100.sina.weibo4j.http.AccessToken...
package com.yaodian100.sina.examples; import java.io.File; import com.yaodian100.sina.weibo4j.Status; import com.yaodian100.sina.weibo4j.Weibo; public class OAuthUploadByFile { /** * Usage: java -DWeibo4j.oauth.consumerKey=[consumer key] * -DWeibo4j.oauth.consumerSecret=[consumer secret] * Weibo4j....
package com.yaodian100.sina.examples.tags; import com.yaodian100.sina.weibo4j.Weibo; public class DestroyTag { public static void main(String[] args) { System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY); System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET); tr...
package com.yaodian100.sina.examples.tags; import java.util.List; import com.yaodian100.sina.weibo4j.Tag; import com.yaodian100.sina.weibo4j.Weibo; public class CreateTag { public static void main(String[] args) { System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY); System.setProperty(...
package com.yaodian100.sina.examples.tags; import java.util.List; import com.yaodian100.sina.weibo4j.Tag; import com.yaodian100.sina.weibo4j.Weibo; public class GetSuggestions { public static void main(String[] args) { System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY); System.setProp...
package com.yaodian100.sina.examples.tags; import java.util.List; import com.yaodian100.sina.weibo4j.Tag; import com.yaodian100.sina.weibo4j.Weibo; public class DestroyTags { public static void main(String[] args) { System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY); System.setPropert...
package com.yaodian100.sina.examples.tags; import java.util.List; import com.yaodian100.sina.weibo4j.Paging; import com.yaodian100.sina.weibo4j.Tag; import com.yaodian100.sina.weibo4j.Weibo; public class GetTags { /** * 获取tags; * * @param args * args[0]和args[1]为通过GetToken.java获取到的...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
package com.yaodian100.sina.weibo4j; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import com.yaodian100.sina.weibo4j.http.Response; import com.yaodian100.sina.weibo4j.org.json.JSONArray; ...
package com.yaodian100.sina.weibo4j; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.yaodian100.sina.weibo4j.http.Response; import com.yaodian100.sina.weibo4j.org.json.JSONArray; import com.yaodian100.sina.weibo...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...
package com.yaodian100.sina.weibo4j.org.json; import java.io.StringWriter; import java.util.Collection; import java.util.Iterator; import java.util.Map; /** * Test class. This file is not formally a member of the org.json library. It is * just a casual test tool. */ public class Test { /** * Entry point. * ...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2008 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2006 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /** * The JSONException is thrown by the JSON.org classes then things are amiss. * * @author JSON.org * @version 2008-09-18 */ public class JSONException extends Exception { private Throwable cause; /** * Constructs a JSONException with an explanatory message. ...
package com.yaodian100.sina.weibo4j.org.json; /** * The <code>JSONString</code> interface allows a <code>toJSONString()</code> * method so that a class can change the behavior of * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>, and * <code>JSONWriter.value(</code>Object<code>)</code>. The ...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; /* Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
package com.yaodian100.sina.weibo4j.org.json; import java.io.IOException; import java.io.Writer; /* Copyright (c) 2006 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restri...
package com.yaodian100.sina.weibo4j; import java.util.ArrayList; import java.util.List; import com.yaodian100.sina.weibo4j.http.Response; import com.yaodian100.sina.weibo4j.org.json.JSONArray; import com.yaodian100.sina.weibo4j.org.json.JSONException; import com.yaodian100.sina.weibo4j.org.json.JSONObject; /** * 话题...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/** * */ package com.yaodian100.sina.weibo4j; import java.util.ArrayList; import java.util.List; import com.yaodian100.sina.weibo4j.http.Response; import com.yaodian100.sina.weibo4j.org.json.JSONArray; import com.yaodian100.sina.weibo4j.org.json.JSONException; import com.yaodian100.sina.weibo4j.org.json...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/** * */ package com.yaodian100.sina.weibo4j.http; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.Iterator; import javax.imageio.ImageIO; import javax.imageio.stream.MemoryCacheImageInputStream; import com.yaodian100.sina.weibo4j.Constants; import com.yaodian100.sina...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* * UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru) */ package com.yaodian100.sina.weibo4j; import java.io.Serializable; import java.util.List; /** * 对User对象列表进行的包装,以支持cursor相关信息传递 * * @author sinaWeibo */ public class UserWapper implements Serializable { private st...
package com.yaodian100.sina.weibo4j; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import com.yaodian100.sina.weibo4j.http.Response; import com.yaodian100.sina.weibo4j.org.json.JSONArray; import com.yaod...
package com.yaodian100.sina.weibo4j.util; ///////////////////////////////////////////////////////// //Bare Bones Browser Launch // //Version 1.5 (December 10, 2005) // //By Dem Pilafian // //Supports: Mac OS X, GNU/Linux, Unix, ...
package com.yaodian100.sina.weibo4j.util; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import java.util.BitSet; /** * @author sinaWeibo * */ public class URLEncodeUtils { static BitSet dontNeedEncoding; static { /* * The list of characters that are...
/* Copyright (c) 2007-2009 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following discla...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
package com.yaodian100.sina.weibo4j; /** * @author SinaWeibo * */ public enum Gender { MALE, FEMALE; public static String valueOf(Gender gender) { int ordinal = gender.ordinal(); if (ordinal == 0) return "m"; return "f"; } }
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
package com.yaodian100.sina.weibo4j; import java.util.ArrayList; import java.util.List; import com.yaodian100.sina.weibo4j.http.Response; import com.yaodian100.sina.weibo4j.org.json.JSONArray; import com.yaodian100.sina.weibo4j.org.json.JSONException; import com.yaodian100.sina.weibo4j.org.json.JSONObject; ...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
package com.yaodian100.sina.weibo4j; public class Constants { public static final String WEI_BO_ADDRESS = "http://t.sina.com.cn/"; public static final String X_AUTH_MODE = "client_auth"; public static final String UPLOAD_MODE = "pic"; }
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Module Name : com.yaodian100.ec.common.web.filter.SSLFilter Module Description : Date Created : 2010/5/10 Original Author : jeffma Team : yaodian100 +++++++++++++++++++++++++++++++++++++++...
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Module Name : com.yaodian100.ec.common.web.GetShareResourceServlet Module Description : Date Created : 2010/3/22 Original Author : jeff.ma Team : yaodian100 ++++++++++++++++++++++++...
import com.opensymphony.xwork2.ActionSupport; import com.yaodian100.ec.order.remote.RemoteOrderService; /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Module Name : .CommonTest Module Description : Date Created : 2011/12/12 Original Author : feeling.wan...
package com.yaodian100; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impor...
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Module Name : com.yaodian100.ec.product.service.aaa Module Description : Date Created : 2010/5/13 Original Author : feeling Team : yaodian100 +++++++++++++++++++++++++++++++++++++++...
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Module Name : com.yaodian100.erp.supplier.remote.RemoteSupplierService Module Description : Date Created : 2009/12/2 Original Author : andy.chuang Team : yaodian100 ++++++++++++++++...
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Module Name : com.yaodian100.supplier.entity.Supplier Module Description : Date Created : 2009/11/10 Original Author : yaote.tsai Team : yaodian100 +++++++++++++++++++++++++++++++++...
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Module Name : com.yaodian100.ec.image.service.testImg Module Description : Date Created : 2010/11/2 Original Author : feeling.wang Team : yaodian100 ++++++++++++++++++++++++++++++++...
package com.yaodian100.ec.image.service; import java.awt.image.BufferedImage; public class ImageScale { private int width; private int height; private int scaleWidth; double support = 3.0; double PI = 3.14159265358978; double[] contrib; double[] normContrib; double[] tmpContrib; int startContrib...