Interface FileStore

All Known Implementing Classes:
JsonFileStore, YamlFileStore

public interface FileStore
Interface for filestore providers.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    io.vertx.core.json.JsonObject
    readObject​(io.vertx.core.buffer.Buffer buffer)
    Reads a T object from a specified application-relative path.
    void
    writeObject​(io.vertx.core.json.JsonObject object, Path path)
    Writes a json-object to the given path.
  • Method Details

    • readObject

      io.vertx.core.json.JsonObject readObject(io.vertx.core.buffer.Buffer buffer)
      Reads a T object from a specified application-relative path.
      Parameters:
      buffer - data of the object to read to json
      Returns:
      the loaded json object.
    • writeObject

      void writeObject(io.vertx.core.json.JsonObject object, Path path)
      Writes a json-object to the given path.
      Parameters:
      object - the object to write.
      path - the path to where the object is written to.
      Throws:
      RuntimeException - on failure to write.
    • getExtensions

      List<String> getExtensions()
      Returns:
      the extension handled by this file store.