public class

FileInputLocation

extends Object
implements IInputLocation
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.input.FileInputLocation

Class Overview

Location information within binary input. Those objects are constituted of one offset, and an optional size. It is appropriate to locate data within IBinaryUnit for example.

Note: will be renamed to FileInputRegionInformation

Summary

Public Constructors
FileInputLocation(long offset)
Create a new location object with an unknown size.
FileInputLocation(long offset, long size)
Create a new location object.
Public Methods
long getOffset()
Get the location offset in bytes, relative to the beginning of the input.
long getSize()
Get the location size in bytes.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FileInputLocation (long offset)

Create a new location object with an unknown size.

Parameters
offset mandatory offset

public FileInputLocation (long offset, long size)

Create a new location object.

Parameters
offset the non-negative offset
size optional size, zero to indicate an unknown size

Public Methods

public long getOffset ()

Get the location offset in bytes, relative to the beginning of the input.

Returns
  • the non-negative offset

public long getSize ()

Get the location size in bytes.

Returns
  • the optional size, negative to indicate an unknown size

public String toString ()