Interface IOPlugin<D>

    • Method Detail

      • getDataType

        Class<D> getDataType()
        The type of data opened and/or saved by the plugin.
      • supportsOpen

        default boolean supportsOpen​(String source)
        Checks whether the I/O plugin can open data from the given source.
      • supportsOpen

        default boolean supportsOpen​(Location source)
        Checks whether the I/O plugin can open data from the given location.
      • supportsSave

        default boolean supportsSave​(String destination)
        Checks whether the I/O plugin can save data to the given destination.
      • supportsSave

        default boolean supportsSave​(Location destination)
        Checks whether the I/O plugin can save data to the given location.
      • supportsSave

        default boolean supportsSave​(Object data,
                                     String destination)
        Checks whether the I/O plugin can save the given data to the specified location.
      • supportsSave

        default boolean supportsSave​(Object data,
                                     Location destination)
      • save

        default void save​(D data,
                          String destination)
                   throws IOException
        Saves the given data to the specified destination.
        Throws:
        IOException
      • supports

        default boolean supports​(String descriptor)
      • getType

        default Class<Location> getType()
        Description copied from interface: Typed
        Gets the type associated with the object.
        Specified by:
        getType in interface Typed<D>