コード例 #1
0
 @Override
 public Tweets read(InputStream anInputStream) throws Exception {
   XmlPullParser _p = f.newPullParser();
   _p.setInput(anInputStream, "utf-8");
   return parse(_p);
 }
コード例 #2
0
 public PullParserTweetsReader() throws Exception {
   dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
   f = XmlPullParserFactory.newInstance();
   f.setNamespaceAware(true);
 }