twitter4j.internal.util
Class z_T4JInternalParseUtil
java.lang.Object
twitter4j.internal.util.z_T4JInternalParseUtil
public final class z_T4JInternalParseUtil
- extends Object
A tiny parse utility class.
- Author:
- Yusuke Yamamoto - yusuke at mac.com
|
Method Summary |
static boolean |
getBoolean(String name,
JSONObject json)
|
static Date |
getDate(String name,
JSONObject json)
|
static Date |
getDate(String name,
JSONObject json,
String format)
|
static Date |
getDate(String name,
String format)
|
static double |
getDouble(String name,
JSONObject json)
|
static int |
getInt(String str)
|
static int |
getInt(String name,
JSONObject json)
|
static long |
getLong(String str)
|
static long |
getLong(String name,
JSONObject json)
|
static String |
getRawString(String name,
JSONObject json)
|
static String |
getUnescapedString(String str,
JSONObject json)
|
static String |
getURLDecodedString(String name,
JSONObject json)
|
static Date |
parseTrendsDate(String asOfStr)
|
static int |
toAccessLevel(HttpResponse res)
|
getUnescapedString
public static String getUnescapedString(String str,
JSONObject json)
getRawString
public static String getRawString(String name,
JSONObject json)
getURLDecodedString
public static String getURLDecodedString(String name,
JSONObject json)
parseTrendsDate
public static Date parseTrendsDate(String asOfStr)
throws TwitterException
- Throws:
TwitterException
getDate
public static Date getDate(String name,
JSONObject json)
throws TwitterException
- Throws:
TwitterException
getDate
public static Date getDate(String name,
JSONObject json,
String format)
throws TwitterException
- Throws:
TwitterException
getDate
public static Date getDate(String name,
String format)
throws TwitterException
- Throws:
TwitterException
getInt
public static int getInt(String name,
JSONObject json)
getInt
public static int getInt(String str)
getLong
public static long getLong(String name,
JSONObject json)
getLong
public static long getLong(String str)
getDouble
public static double getDouble(String name,
JSONObject json)
getBoolean
public static boolean getBoolean(String name,
JSONObject json)
toAccessLevel
public static int toAccessLevel(HttpResponse res)
Copyright © 2012. All Rights Reserved.