|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.io.FileImporter
org.openstreetmap.josm.io.JpgImporter
public class JpgImporter
File importer allowing to import geottaged images (*.jpg files).
| Field Summary | |
|---|---|
static ExtensionFileFilter |
FILE_FILTER
The default file filter (only *.jpg files). |
static ExtensionFileFilter |
FILE_FILTER_WITH_FOLDERS
An alternate file filter that also includes folders. |
private GpxLayer |
gpx
|
| Fields inherited from class org.openstreetmap.josm.io.FileImporter |
|---|
filter |
| Constructor Summary | |
|---|---|
JpgImporter()
Constructs a new JpgImporter. |
|
JpgImporter(boolean includeFolders)
Constructs a new JpgImporter with folders selection, if wanted. |
|
JpgImporter(GpxLayer gpx)
Constructs a new JpgImporter for the given GPX layer. |
|
| Method Summary | |
|---|---|
boolean |
acceptFile(java.io.File pathname)
|
private void |
addRecursiveFiles(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> visitedDirs,
java.util.List<java.io.File> sel,
ProgressMonitor progressMonitor)
|
double |
getPriority()
Needs to be the last, to avoid problems. |
void |
importData(java.util.List<java.io.File> sel,
ProgressMonitor progressMonitor)
Needs to be implemented if isBatchImporter() returns true. |
boolean |
isBatchImporter()
A batch importer is a file importer that prefers to read multiple files at the same time. |
| Methods inherited from class org.openstreetmap.josm.io.FileImporter |
|---|
activeLayerChange, compareTo, getBZip2InputStream, getGZipInputStream, importData, importDataHandleExceptions, importDataHandleExceptions, isEnabled, layerAdded, layerRemoved, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private GpxLayer gpx
public static final ExtensionFileFilter FILE_FILTER
public static final ExtensionFileFilter FILE_FILTER_WITH_FOLDERS
| Constructor Detail |
|---|
public JpgImporter()
JpgImporter.
public JpgImporter(boolean includeFolders)
JpgImporter with folders selection, if wanted.
includeFolders - If true, includes folders in the file filterpublic JpgImporter(GpxLayer gpx)
JpgImporter for the given GPX layer. Folders selection is allowed.
gpx - The GPX layer| Method Detail |
|---|
public boolean acceptFile(java.io.File pathname)
acceptFile in class FileImporter
public void importData(java.util.List<java.io.File> sel,
ProgressMonitor progressMonitor)
throws java.io.IOException,
IllegalDataException
FileImporter
importData in class FileImporterjava.io.IOException
IllegalDataException
private void addRecursiveFiles(java.util.List<java.io.File> files,
java.util.Set<java.lang.String> visitedDirs,
java.util.List<java.io.File> sel,
ProgressMonitor progressMonitor)
throws java.io.IOException
java.io.IOExceptionpublic boolean isBatchImporter()
FileImporter
isBatchImporter in class FileImporterpublic double getPriority()
getPriority in class FileImporter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||