Class FileConfiguration

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.comroid.api.Disposable, org.comroid.common.info.Dependent<java.lang.Object>, org.comroid.common.io.FileProcessor, DataContainer<java.lang.Object>

    public class FileConfiguration
    extends DataContainerBase<java.lang.Object>
    implements org.comroid.common.io.FileProcessor
    • Constructor Detail

      • FileConfiguration

        public FileConfiguration​(org.comroid.uniform.SerializationAdapter<?,​?,​?> serializationAdapter,
                                 org.comroid.common.io.FileHandle file)
      • FileConfiguration

        public FileConfiguration​(org.comroid.uniform.SerializationAdapter<?,​?,​?> serializationAdapter,
                                 @Nullable
                                 @Nullable java.lang.Class<? extends FileConfiguration> containingClass,
                                 org.comroid.common.io.FileHandle file)
    • Method Detail

      • getFile

        public final org.comroid.common.io.FileHandle getFile()
        Specified by:
        getFile in interface org.comroid.common.io.FileProcessor
      • getChildren

        public java.util.Collection<? extends java.lang.AutoCloseable> getChildren()
        Specified by:
        getChildren in interface org.comroid.api.Disposable
      • addChildren

        public void addChildren​(java.lang.AutoCloseable child)
        Specified by:
        addChildren in interface org.comroid.api.Disposable
      • storeData

        public final void storeData()
                             throws java.io.IOException
        Specified by:
        storeData in interface org.comroid.common.io.FileProcessor
        Throws:
        java.io.IOException
      • reloadData

        public final void reloadData()
                              throws java.io.IOException
        Specified by:
        reloadData in interface org.comroid.common.io.FileProcessor
        Throws:
        java.io.IOException