1 19 20 package org.netbeans.modules.project.libraries; 21 22 import java.net.*; 23 import org.xml.sax.*; 24 25 30 public class LibraryDeclarationConvertorImpl implements LibraryDeclarationConvertor { 31 32 33 public URL parseResource(final String data) throws SAXException { 34 try { 35 if (data == null) { 36 return null; 37 } 38 else { 39 return new URL (data); 40 } 41 } catch (MalformedURLException ex) { 42 throw new SAXException("Invalid resource URI: " + data.trim() + ")", ex); } 44 } 45 } 46 47 | Popular Tags |