source: trunk/src/org/expeditee/importer/FilePathImporter.java@ 309

Last change on this file since 309 was 253, checked in by ra33, 16 years ago
File size: 535 bytes
Line 
1package org.expeditee.importer;
2
3import java.awt.Point;
4import java.io.File;
5import java.io.IOException;
6
7import org.expeditee.items.Item;
8
9
10/**
11 * The most basic of file importers: imports a file/directory as a Text item.
12 *
13 * @author Brook Novak
14 *
15 */
16public class FilePathImporter implements FileImporter {
17
18 public Item importFile(File f, Point location) throws IOException {
19 if (location != null && f != null) {
20 return FrameDNDTransferHandler.importString(f.getAbsolutePath(), location);
21 }
22
23 return null;
24
25 }
26
27
28}
Note: See TracBrowser for help on using the repository browser.