public class DefaultCustomObjectProvider extends AbstractPlugin implements CustomObjectProvider
PROPERTY_MINIMUM_WORLDPAINTER_VERSION, PROPERTY_NAME, PROPERTY_UUIDS, PROPERTY_VERSION
Constructor and Description |
---|
DefaultCustomObjectProvider() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getKeys()
Get the keys supported by this provider.
|
java.util.List<java.lang.String> |
getSupportedExtensions()
Get the list of filename extensions of the custom object formats
supported by this plugin.
|
WPObject |
loadObject(java.io.File file)
Load a custom object from a specific file.
|
getName, getProperties, getUUIDs, getVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMinimumWorldPainterVersion, getName, getProperties, getUUIDs, getVersion, init
public java.util.List<java.lang.String> getKeys()
Provider
public java.util.List<java.lang.String> getSupportedExtensions()
CustomObjectProvider
getSupportedExtensions
in interface CustomObjectProvider
public WPObject loadObject(java.io.File file) throws java.io.IOException
CustomObjectProvider
loadObject
in interface CustomObjectProvider
file
- The file from which to load the custom object.java.io.IOException
- If an I/O error occurs while reading the file.