Class Loader<E>

  • Type Parameters:
    E - The sub-interface extending IJsonBindingsBacked or IJsonList

    public class Loader<E>
    extends Object
    This class is used as part of the JSON API. It provides methods to load an instance of a JSON interface from potential JSON, XML, CSV, and YAML sources such as String, File, and URL (via HTTP GET).

    See Requester, obtained from a JSON API object's send() method, for methods to send an HTTP request using GET, POST, PUT, PATCH, & DELETE.

    • Constructor Detail

      • Loader

        public Loader()
    • Method Detail

      • fromJson

        public E fromJson​(String jsonText)
      • fromJsonUrl

        public E fromJsonUrl​(String urlBase,
                             String... urlSuffix)
      • fromJsonUrl

        public E fromJsonUrl​(URL url)
      • fromJsonFile

        public E fromJsonFile​(File file)
      • fromJsonReader

        public E fromJsonReader​(Reader reader)
      • fromYaml

        public E fromYaml​(String yamlText)
      • fromYamlUrl

        public E fromYamlUrl​(String urlBase,
                             String... urlSuffix)
      • fromYamlUrl

        public E fromYamlUrl​(URL url)
      • fromYamlFile

        public E fromYamlFile​(File file)
      • fromYamlReader

        public E fromYamlReader​(Reader reader)
      • fromXml

        public E fromXml​(String xmlText)
      • fromXmlUrl

        public E fromXmlUrl​(String urlBase,
                            String... urlSuffix)
      • fromXmlUrl

        public E fromXmlUrl​(URL url)
      • fromXmlFile

        public E fromXmlFile​(File file)
      • fromXmlReader

        public E fromXmlReader​(Reader reader)
      • fromCsv

        public E fromCsv​(String csvText)
      • fromCsvUrl

        public E fromCsvUrl​(String urlBase,
                            String... urlSuffix)
      • fromCsvUrl

        public E fromCsvUrl​(URL url)
      • fromCsvFile

        public E fromCsvFile​(File file)
      • fromCsvReader

        public E fromCsvReader​(Reader reader)