Ejemplo n.º 1
0
  private static void mapPrefixIfNeeded(
      Set<String> declaredPrefixes, String uri, String qName, StringBuilder sb) {
    final String prefix = XMLUtils.prefixFromQName(qName);
    if (prefix.length() > 0 && !declaredPrefixes.contains(prefix)) {
      sb.append(" xmlns:");
      sb.append(prefix);
      sb.append("=\"");
      sb.append(uri);
      sb.append("\"");

      declaredPrefixes.add(prefix);
    }
  }
 /** Register that an upload has started. */
 public void startUpload(String uploadId) {
   if (pendingUploads == null) pendingUploads = new HashSet<String>();
   pendingUploads.add(uploadId);
 }