Interface MudlibJsonArrayReader

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MudlibJsonArrayReader
Reads a bounded slice from an array inside a mudlib-owned JSON document.
  • Method Summary

    Modifier and Type
    Method
    Description
    read(String path, String pointer, int offset, int count)
    Reads part of the JSON array selected by an RFC 6901 JSON Pointer.
  • Method Details

    • read

      Object read(String path, String pointer, int offset, int count)
      Reads part of the JSON array selected by an RFC 6901 JSON Pointer.
      Parameters:
      path - mudlib-relative JSON file path
      pointer - JSON Pointer selecting an array; the empty pointer selects a root array
      offset - zero-based first array entry to return
      count - maximum number of array entries to return
      Returns:
      an LPC-compatible array slice, or LPC false when the file is unavailable