예제 #1
0
 /** @see com.twitterapime.io.HttpConnection#openInputStream() */
 public InputStream openInputStream() throws IOException {
   if (!conn.getDoInput()) {
     conn.setDoInput(true);
   }
   //
   if (conn.getResponseCode() == HTTP_OK) {
     return conn.getInputStream();
   } else {
     return conn.getErrorStream();
   }
 }
 public boolean getDoInput() {
   return _flddelegate.getDoInput();
 }