Class ResourceRegion
java.lang.Object
org.springframework.core.io.support.ResourceRegion
Region of a
Resource implementation, materialized by a position
within the Resource and a byte count for the length of that region.- Since:
- 4.3
- Author:
- Arjen Poutsma
-
Constructor Summary
ConstructorsConstructorDescriptionResourceRegion(Resource resource, long position, long count) Create a newResourceRegionfrom a givenResource. -
Method Summary
-
Constructor Details
-
ResourceRegion
Create a newResourceRegionfrom a givenResource. This region of a resource is represented by a startpositionand a bytecountwithin the givenResource.- Parameters:
resource- a Resourceposition- the start position of the region in that resourcecount- the byte count of the region in that resource
-
-
Method Details