Package com.pnfsoftware.jeb.core.input
Class FileInputRegionInformation
java.lang.Object
com.pnfsoftware.jeb.core.input.FileInputRegionInformation
- All Implemented Interfaces:
IInputLocation
Location information within binary input. Those objects are constituted of one offset, and an
optional size.
-
Constructor Summary
ConstructorsConstructorDescriptionFileInputRegionInformation
(long offset) Create a new location object with an unknown size.FileInputRegionInformation
(long offset, long size) Create a new location object.FileInputRegionInformation
(long offset, long size, IInput input) Create a new location object. -
Method Summary
-
Constructor Details
-
FileInputRegionInformation
public FileInputRegionInformation(long offset) Create a new location object with an unknown size.- Parameters:
offset
- mandatory offset
-
FileInputRegionInformation
public FileInputRegionInformation(long offset, long size) Create a new location object.- Parameters:
offset
- the non-negative offsetsize
- optional size, zero to indicate an unknown size
-
FileInputRegionInformation
Create a new location object.- Parameters:
offset
- the non-negative offsetsize
- optional size, zero to indicate an unknown sizeinput
- optional input, if the input object is not known (or unclear) by the client
-
-
Method Details
-
getOffset
public long getOffset()Get the location offset in bytes, relative to the beginning of the input.- Returns:
- the non-negative offset
-
getSize
public long getSize()Get the location size in bytes.- Returns:
- the optional size, negative to indicate an unknown size
-
getInput
Get the input object.- Returns:
- the optional input object, may be null if unspecified
-
toString
-