Ejemplo n.º 1
0
 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();
   }
 }
Ejemplo n.º 2
0
 public void load(File file) throws IOException, ParserConfigurationException, SAXException {
   this.file = file;
   load(new FileInputStream(file));
 }