Class LongMappedByteBuffer

java.lang.Object
org.openpdf.text.utils.LongMappedByteBuffer

public class LongMappedByteBuffer extends Object
A utility class that allows random access to files larger than 2GB by internally mapping them into multiple MappedByteBuffer chunks of up to 2GB each.
Since:
2.0.4
  • Constructor Details

  • Method Details

    • get

      public byte get()
    • get

      public byte get(long pos)
    • get

      public void get(long pos, byte[] dst, int off, int len)
    • get

      public void get(byte[] dst, int off, int len)
    • put

      public void put(byte value)
    • put

      public void put(long pos, byte value)
    • put

      public void put(byte[] src, int off, int len)
    • read

      public int read(byte[] bytes, int off, int len)
    • position

      public long position()
    • position

      public LongMappedByteBuffer position(long newPosition)
    • size

      public long size()
    • limit

      public long limit()
    • load

      public LongMappedByteBuffer load()
    • isLoaded

      public boolean isLoaded()
    • force

      public void force()