Exemplo n.º 1
0
 /** find out what a tag contains */
 public void characters(char[] ch, int start, int length) {
   // string that contains the character data within the tag
   // System.out.println("LibraryHandler.characters()");
   String strValue = new String(ch, start, length);
   if (currentActivity == READING_VALUE) {
     librarySql.setValue(strValue);
     chars.append(ch, start, length);
   }
   if (currentActivity == READING_NAME) {
     librarySql.setName(strValue);
   }
 }
Exemplo n.º 2
0
 /** find out when an end tag is reached */
 public void endElement(String uri, String localName, String qName) {
   // System.out.println("LibraryHandler.endElement()");
   if (qName.equals("Sql")) {
     String sqlValue = chars.toString();
     librarySql.setValue(sqlValue);
     // log.info("Name: " + librarySql.getName() + "\nValue: " + librarySql.getValue());
     sqlStatementList.add(librarySql);
     librarySql = new SqlStatement(inputHandler);
   }
 }