public class VirtualPart extends Object implements Serializable
Constructor and Description |
---|
VirtualPart(byte[] hardPart)
Initializes a VirtualPart which represents a hard byte array.
|
VirtualPart(String reference,
long referenceBeginPosition,
int referenceLength)
Initializes a VirtualPart which represents a reference.
|
Modifier and Type | Method and Description |
---|---|
static long |
calculateInflatedLength(List<VirtualPart> parts)
Calculates the length of the given part in the expanded PDF file
|
int |
getInflatedLength()
Calculates the length of this part in the inflated PDF file
|
void |
setOutBeginPos(long offset) |
public VirtualPart(byte[] hardPart)
hardPart
- The contained bytespublic VirtualPart(String reference, long referenceBeginPosition, int referenceLength)
reference
- The path to the referenced filereferenceBeginPosition
- The offset of the referenced content in the
referenced filereferenceLength
- The length of the referenced contentpublic static long calculateInflatedLength(List<VirtualPart> parts)
parts
- the parts to considerpublic int getInflatedLength()
public void setOutBeginPos(long offset)
Copyright © 2025. All rights reserved.