Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
/*************************************************************************** * Get Document XML * @param strURL URL string * @return * @throws IOException * @date May 9, 2011 * @time 1:40:54 AM * @author DatNQ **************************************************************************/ public Document getDocumentFromURL(String strURL) throws IOException { /* Verify URL */ if (strURL == null){ Log.e(TAG,"Invalid input URL"); return null; } /* Connect to server */ requestConnectServer(strURL); /* Get data from server */ String strDocContent = getDataFromConnection(); /* Close connection */ requestDisconnect(); if (strDocContent == null){ Log.e(TAG,"Can not get xml content"); return null; } int strContentSize = strDocContent.length(); StringBuffer strBuff = new StringBuffer(); strBuff.setLength(strContentSize+1); strBuff.append(strDocContent); ByteArrayInputStream is = new ByteArrayInputStream(strDocContent.getBytes()); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db; Document docData = null; try { db = dbf.newDocumentBuilder(); docData = db.parse(is); } catch (Exception e) { Log.e(TAG,"Parser data error"); return null; } return docData; } /*************************************************************************** * Get xml document * @return string xml * @throws IOException * @date May 9, 2011 * @time 1:43:28 AM * @author DatNQ **************************************************************************/ private String getDataFromConnection() throws IOException { if (httpConnection == null){ Log.e(TAG,"connection is null"); return null; } String strValue = null; InputStream inputStream = httpConnection.getInputStream(); if (inputStream == null){ Log.e(TAG, "Get input tream error"); return null; } StringBuffer strBuf = new StringBuffer(); BufferedReader buffReader = new BufferedReader(new InputStreamReader(inputStream)); String strLine = ""; while ((strLine = buffReader.readLine()) != null){ strBuf.append(strLine+"\n"); strValue +=strLine+"\n"; } /* Release resource to system */ buffReader.close(); inputStream.close(); return strBuf.toString(); } } /******************************************************************************* * END OF FILE ******************************************************************************/