public class

ByteRange

extends Object
java.lang.Object
   ↳ com.pdftron.common.ByteRange

Class Overview

This class represents a Byte Range.

Summary

Public Constructors
ByteRange(long impl_ptr)
Public Methods
long __GetHandle()
void destroy()
Frees the native memory of the object.
int getEndOffset()
Retrieves the end offset of the byte range.
int getSize()
Retrieves the size of the byte range.
int getStartOffset()
Retrieves the start offset of the byte range.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ByteRange (long impl_ptr)

Public Methods

public long __GetHandle ()

public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public int getEndOffset ()

Retrieves the end offset of the byte range.

Returns
  • an unsigned integer

public int getSize ()

Retrieves the size of the byte range.

Returns
  • an unsigned integer

public int getStartOffset ()

Retrieves the start offset of the byte range.

Returns
  • an unsigned integer