org.openide.loaders
Interface DataObject.Factory
- All Known Implementing Classes:
- DataLoader, MultiFileLoader, UniFileLoader
- Enclosing class:
- DataObject
public static interface DataObject.Factory
Factory interface for converting file object to data objects. Read
more about the layer based registrations in
separate document.
- Since:
- 7.0
findDataObject
DataObject findDataObject(FileObject fo,
Set<? super FileObject> recognized)
throws IOException
- Find a data object appropriate to the given file object--the meat of this class.
The loader can add all files it has recognized into the
recognized
buffer. Then all these files will be excluded from further processing.
- Parameters:
fo
- file object to recognizerecognized
- recognized file buffer
- Returns:
- suitable data object or
null
if the handler cannot
recognize this object (or its group)
- Throws:
DataObjectExistsException
- if the data object for the
primary file already exists
IOException
- if the object is recognized but cannot be created
InvalidClassException
- if the class is not instance of
#getRepresentationClass
- See Also:
DataLoader