接口 Configuration

    • 方法详细资料

      • header

        String header()
        The header of this configuration. But Now NOT Implement this method.
        返回:
        THe header of this configuration.
      • header

        Configuration header​(String header)
        Set header of this configuration. But Now NOT Implement this method.
        参数:
        header - The header
        返回:
        this.
      • load

        default void load​(Path file)
                   throws IOException
        Load configuration from Path
        参数:
        file - The Path.
        抛出:
        IOException - I/O Exception
      • load

        default void load​(File file)
                   throws IOException
        Load configuration from file
        参数:
        file - The file
        抛出:
        IOException - I/O Exception
      • load

        void load​(Reader stream)
           throws IOException
        Load configuration from a Reader.
        参数:
        stream - The reader.
        抛出:
        IOException - I/O Exception
      • store

        void store​(Writer writer)
            throws IOException
        Write this configuration to writer.
        参数:
        writer - The writer
        抛出:
        IOException - I/O Exception
      • store

        default void store​(File file)
                    throws IOException
        Save this configuration
        参数:
        file - The location
        抛出:
        IOException - I/O Exception
      • store

        default void store​(Path file)
                    throws IOException
        Save this configuration
        参数:
        file - The location
        抛出:
        IOException - I/O Exception
      • newContext

        @NotNull
        @NotNull Configuration newContext()
        Create a new reading/writing context of this configuration

        Read and write operations are synchronized

        指定者:
        newContext 在接口中 ConfigurationSection
        返回:
        The new context.