public TrackDatabase(InputStream is) throws IOException { try { createDOM(); load(is); } catch (Exception e) { e.printStackTrace(); if (!(e instanceof IOException)) throw new IOException(e.toString()); create(); } }
public void load(File file) throws IOException, ParserConfigurationException, SAXException { this.file = file; load(new FileInputStream(file)); }