org.openide.loaders 7.16.1

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

Method Summary
 DataObject findDataObject(FileObject fo, Set<? super FileObject> recognized)
          Find a data object appropriate to the given file object--the meat of this class.
 

Method Detail

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 recognize
recognized - 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

org.openide.loaders 7.16.1

Built on April 28 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.