181182183184185186187188189190191
{ root.appendChild(doc.createTextNode((String) element)); } else { throw new XindiceRuntimeException("Unknown result type (" + element.getClass().getName() + ") in nodeset"); } count++; }
101102103104105106107108
public Value(String data) { try { this.data = data.getBytes("utf-8"); this.len = this.data.length; } catch (UnsupportedEncodingException e) { throw new XindiceRuntimeException("Java doesn't support UTF-8 encoding", e); } }
155156157158159160161162
public final String toString() { try { return new String(getData(), "utf-8"); } catch (UnsupportedEncodingException e) { throw new XindiceRuntimeException("Java doesn't seem to support UTF-8!", e); } }
14381439144014411442144314441445
{ prepareNextNode(); } catch (Exception e) { throw new XindiceRuntimeException(e.getMessage()); } }
15271528152915301531153215331534153515361537
{ prepareNextNode(); } catch (Exception e) { throw new XindiceRuntimeException(e.getMessage()); } } return n; }
624625626627628629630631632633634
} else if (element instanceof Boolean || element instanceof Double) { root.appendChild(doc.createTextNode(element.toString())); } else if (element instanceof String) { root.appendChild(doc.createTextNode((String) element)); } else { throw new XindiceRuntimeException("Unknown result type (" + element.getClass().getName() + ") in nodeset"); } count++; }
6667686970717273
try { this.data = data.getBytes("utf-8"); this.pos = 0; this.len = this.data.length; } catch (UnsupportedEncodingException e) { throw new XindiceRuntimeException("Java doesn't support UTF-8 encoding", e); } }
242243244245246247248249
public final String toString() { try { return new String(data, pos, len, "utf-8"); } catch (UnsupportedEncodingException e) { throw new XindiceRuntimeException("Java doesn't seem to support UTF-8!", e); } }
12271228122912301231123212331234
}; try { prepareNextNode(); } catch (Exception e) { throw new XindiceRuntimeException(e.getMessage()); } }
13221323132413251326132713281329133013311332
node = ni.nextNode(); if (node == null) { try { prepareNextNode(); } catch (Exception e) { throw new XindiceRuntimeException(e.getMessage()); } } return n; }