/** @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; }
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; }
private Node getSCPDNode(File scpdFile) throws ParserException { Parser parser = UPnP.getXMLParser(); return parser.parse(scpdFile); }
private Node getSCPDNode(URL scpdUrl) throws ParserException { Parser parser = UPnP.getXMLParser(); return parser.parse(scpdUrl); }