Beispiel #1
0
 /** @since 1.8.0 */
 public boolean loadSCPD(InputStream input) throws ParserException {
   Parser parser = UPnP.getXMLParser();
   Node scpdNode = parser.parse(input);
   if (scpdNode == null) return false;
   ServiceData data = getServiceData();
   data.setSCPDNode(scpdNode);
   return true;
 }
Beispiel #2
0
 public boolean loadSCPD(String scpdStr) throws InvalidDescriptionException {
   try {
     Parser parser = UPnP.getXMLParser();
     Node scpdNode = parser.parse(scpdStr);
     if (scpdNode == null) return false;
     ServiceData data = getServiceData();
     data.setSCPDNode(scpdNode);
   } catch (ParserException e) {
     throw new InvalidDescriptionException(e);
   }
   return true;
 }
Beispiel #3
0
 private Node getSCPDNode(File scpdFile) throws ParserException {
   Parser parser = UPnP.getXMLParser();
   return parser.parse(scpdFile);
 }
Beispiel #4
0
 private Node getSCPDNode(URL scpdUrl) throws ParserException {
   Parser parser = UPnP.getXMLParser();
   return parser.parse(scpdUrl);
 }