org.springframework.core.io.support

## 类 ResourceRegion

- java.lang.Object
- - org.springframework.core.io.support.ResourceRegion

-     public class ResourceRegion
      extends Object

  Region of a `Resource` implementation, materialized by a `position` within the `Resource` and a byte `count` for the length of that region.
  从以下版本开始:
    4.3
  作者:
    Arjen Poutsma

- - ### 构造器概要

    构造器
    构造器和说明
    `ResourceRegion(Resource resource, long position, long count)` Create a new `ResourceRegion` from a given `Resource`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `long` | `getCount()` Return the byte count of this region in the underlying `Resource`
    `long` | `getPosition()` Return the start position of this region in the underlying `Resource`
    `Resource` | `getResource()` Return the underlying `Resource` for this `ResourceRegion`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ResourceRegion

          public ResourceRegion(Resource resource,
                                long position,
                                long count)

      Create a new `ResourceRegion` from a given `Resource`. This region of a resource is represented by a start `position` and a byte `count` within the given `Resource`.
      参数:
        `resource` - a Resource
        `position` - the start position of the region in that resource
        `count` - the byte count of the region in that resource

  - ### 方法详细资料

    - #### getResource

          public Resource getResource()

      Return the underlying `Resource` for this `ResourceRegion`

    - #### getPosition

          public long getPosition()

      Return the start position of this region in the underlying `Resource`

    - #### getCount

          public long getCount()

      Return the byte count of this region in the underlying `Resource`