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)
package com.org.android.Radio; import java.util.ArrayList; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; //import com.org.android.project_radio.TextItem; public class Handler extends DefaultHandler{ // =========================================================== // Fields // =========================================================== private boolean in_outertag = false; private boolean in_innertag = false; private boolean in_mytag = false; private boolean in_mytag1 = false; private boolean in_mytag2 = false; /////////// private boolean in_text_tag = false; private boolean in_type_tag = false; private ArrayList list = new ArrayList(); private ParsedData myParsedData = new ParsedData(); // =========================================================== // Getter & Setter // =========================================================== public ParsedData getParsedData() { return this.myParsedData; } // =========================================================== // Methods // =========================================================== @Override public void startDocument() throws SAXException { this.myParsedData = new ParsedData(); } @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.equalsIgnoreCase("outline")) { this.in_outertag = true; String attrValue = atts.getValue("type").toString(); String attrValue1 = atts.getValue("text").toString(); String attrValue2 = atts.getValue("URL").toString(); String attrValue3 = atts.getValue("key").toString(); this.myParsedData = new ParsedData(); myParsedData.setExtractedStringtype(attrValue); myParsedData.setExtractedStringtext(attrValue1); myParsedData.setExtractedStringurl(attrValue2); myParsedData.setExtractedStringkey(attrValue3); // vector.addElement(ParsedData); } } // } /*if ( localName.equals( "text" ) ) { currentTextItem = new TextItem(); TextItem.addElement( currentTextItem ); } */ /** Gets be called on closing tags like: * */ @Override public void endElement(String namespaceURI, String localName, String qName) throws SAXException { if (localName.equalsIgnoreCase("outline")) { this.in_outertag = false; }else if (localName.equalsIgnoreCase("type")) { this.in_innertag = false; }else if (localName.equalsIgnoreCase("text")) { this.in_mytag = false; }else if (localName.equalsIgnoreCase("URL")) { this.in_mytag1 = false; } else if (localName.equalsIgnoreCase("key")) { this.in_mytag2 = false; } } /** Gets be called on the following structure: * characters */ @Override // public void characters(char ch[], int start, int length) { // getLast()-Function is probably not existing, need to do on your own /* if(this.in_type_tag){ // list.getClass().setExtractedString(new String(ch, start, length)); // myParsedData = list.get(0); myParsedData.setExtractedStringtype(new String(ch, start, length)); } if(this.in_text_tag){ myParsedData = list.get(0); //list.getLast().setExtractedDouble(Double.parseDouble(new String(ch, start, length))); myParsedData.setExtractedStringtext(Double.parseDouble(new String(ch, start, length))); } } */ /* public void characters(char ch[], int start, int length) { if(this.in_innertag) { ParsedData.setExtractedStringtype(new String(ch, start, length)); } else if (this.in_mytag) { ParsedData.setExtractedStringtext(new String(ch, start, length)); } else if (this.in_mytag1) { ParsedData.setExtractedStringurl(new String(ch, start, length)); } else if (this.in_mytag2) { ParsedData.setExtractedStringkey(new String(ch, start, length)); } }*/ public void characters(char ch[], int start, int length) { if(this.in_innertag){ myParsedData.setExtractedStringtype(new String(ch, start, length)); } } }