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)
public class LevelHandler extends DefaultHandler{ // =========================================================== // Fields // =========================================================== private int mIndex = 0; private boolean in_element = false; private boolean in_id = false; private boolean in_name = false; private boolean in_coodrX = false; private boolean in_coordY = false; private boolean in_cellX = false; private boolean in_cellY = false; private ArrayList myParsedObjectDataList; // =========================================================== // Getter & Setter // =========================================================== public ArrayList getParsedData() { return this.myParsedObjectDataList; } // =========================================================== // Methods // =========================================================== @Override public void startDocument() throws SAXException { myParsedObjectDataList = new ArrayList(); } @Override public void endDocument() throws SAXException { // Nothing to do } /** Gets be called on opening tags like: * * Can provide attribute(s), when xml was like: * */ @Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { if (localName.equals("ELEMENT")){ myParsedObjectDataList.add(new ParsedObjectDataSet()); } else if (localName.equals("ID")){ in_id = true; } else if (localName.equals("NAME")){ in_name = true; } else if (localName.equals("COORD_X")){ in_coodrX = true; } else if (localName.equals("COORD_Y")){ in_coordY = true; } else if (localName.equals("CELLS_X")){ in_cellX = true; } else if (localName.equals("CELLS_Y")){ in_cellY = true; } } /** Gets be called on closing tags like: * */ @Override public void endElement(String namespaceURI, String localName, String qName) throws SAXException { if (localName.equals("ELEMENT")){ myParsedObjectDataList.add(new ParsedObjectDataSet()); mIndex++; } else if (localName.equals("ID")){ in_id = false; } else if (localName.equals("NAME")){ in_name = false; } else if (localName.equals("COORD_X")){ in_coodrX = false; } else if (localName.equals("COORD_Y")){ in_coordY = false; } else if (localName.equals("CELLS_X")){ in_cellX = false; } else if (localName.equals("CELLS_Y")){ in_cellY = false; } } /** Gets be called on the following structure: * characters */ @Override public void characters(char ch[], int start, int length) { String textBetween = new String(ch,start,length); if (in_id) { myParsedObjectDataList.get(mIndex).setID(Integer.parseInt(textBetween)); } else if (in_name) { myParsedObjectDataList.get(mIndex).setName(textBetween); } else if (in_coodrX) { myParsedObjectDataList.get(mIndex).setCoord_X(Integer.parseInt(textBetween)); } else if (in_coordY) { myParsedObjectDataList.get(mIndex).setCoord_Y(Integer.parseInt(textBetween)); } else if (in_cellX) { myParsedObjectDataList.get(mIndex).setCell_X(Integer.parseInt(textBetween)); } else if (in_cellY) { myParsedObjectDataList.get(mIndex).setCell_Y(Integer.parseInt(textBetween)); } } }