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
ConstructorDescriptionResourceRegion
(Resource resource, long position, long count) Create a newResourceRegion
from a givenResource
. -
Method Summary
-
Constructor Details
-
ResourceRegion
Create a newResourceRegion
from a givenResource
. This region of a resource is represented by a startposition
and a bytecount
within 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