类 JacksonJsonObjectReader<T>

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      voidclose()
      Close the input resource.
      voidopen​(org.springframework.core.io.Resource resource)
      Open the Json resource for reading.
      Tread()
      Read the next object in the Json resource if any.
      voidsetMapper​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      Set the object mapper to use to map Json objects to domain objects.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • setMapper

        public void setMapper​(com.fasterxml.jackson.databind.ObjectMapper mapper)
        Set the object mapper to use to map Json objects to domain objects.
        参数:
        mapper - the object mapper to use
      • open

        public void open​(org.springframework.core.io.Resource resource)
                  throws java.lang.Exception
        从接口复制的说明: JsonObjectReader
        Open the Json resource for reading.
        指定者:
        open 在接口中 JsonObjectReader<T>
        参数:
        resource - the input resource
        抛出:
        java.lang.Exception - if unable to open the resource
      • read

        public T read()
               throws java.lang.Exception
        从接口复制的说明: JsonObjectReader
        Read the next object in the Json resource if any.
        指定者:
        read 在接口中 JsonObjectReader<T>
        返回:
        the next object or null if the resource is exhausted
        抛出:
        java.lang.Exception - if unable to read the next object
      • close

        public void close()
                   throws java.lang.Exception
        从接口复制的说明: JsonObjectReader
        Close the input resource.
        指定者:
        close 在接口中 JsonObjectReader<T>
        抛出:
        java.lang.Exception - if unable to close the input resource