Package com.itextpdf.io.source
Class GroupedRandomAccessSource.SourceEntry
java.lang.Object
com.itextpdf.io.source.GroupedRandomAccessSource.SourceEntry
- Enclosing class:
GroupedRandomAccessSource
Used to track each source, along with useful meta data
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final long
The first byte (in the coordinates of the GroupedRandomAccessSource) that this source contains(package private) final int
The index of this source in the GroupedRandomAccessSource(package private) final long
The last byte (in the coordinates of the GroupedRandomAccessSource) that this source contains(package private) final IRandomAccessSource
The underlying source -
Constructor Summary
ConstructorsConstructorDescriptionSourceEntry
(int index, IRandomAccessSource source, long offset) Standard constructor -
Method Summary
Modifier and TypeMethodDescriptionlong
offsetN
(long absoluteOffset) Given an absolute offset (in the GroupedRandomAccessSource coordinates), calculate the effective offset in the underlying source
-
Field Details
-
source
The underlying source -
firstByte
final long firstByteThe first byte (in the coordinates of the GroupedRandomAccessSource) that this source contains -
lastByte
final long lastByteThe last byte (in the coordinates of the GroupedRandomAccessSource) that this source contains -
index
final int indexThe index of this source in the GroupedRandomAccessSource
-
-
Constructor Details
-
SourceEntry
Standard constructor- Parameters:
index
- the indexsource
- the sourceoffset
- the offset of the source in the GroupedRandomAccessSource
-
-
Method Details
-
offsetN
public long offsetN(long absoluteOffset) Given an absolute offset (in the GroupedRandomAccessSource coordinates), calculate the effective offset in the underlying source- Parameters:
absoluteOffset
- the offset in the parent GroupedRandomAccessSource- Returns:
- the effective offset in the underlying source
-