Exemplo n.º 1
0
 /** Create a new document that contains data from the given file. */
 @Override
 public Document createDocument(Application app, File file) {
   TextDocument d = new TextDocument(app);
   d.setFile(file);
   return d;
 }
Exemplo n.º 2
0
 /** Create a new document that contains data from the given URL. */
 @Override
 public Document createDocument(Application app, URL url) {
   TextDocument d = new TextDocument(app);
   d.setURL(url);
   return d;
 }