Class PathPart

java.lang.Object
org.jboss.resteasy.reactive.PathPart

public class PathPart extends Object
Wrapper type representing the Path to a partial file object to be sent.
  • Field Details

    • file

      public final Path file
      The file to send
    • offset

      public final long offset
      The starting byte of the file
    • count

      public final long count
      The number of bytes to send
  • Constructor Details

    • PathPart

      public PathPart(Path file, long offset, long count)
      Create a new partial Path object.
      Parameters:
      file - The file to send
      offset - The starting byte of the file (must be >= 0)
      count - The number of bytes to send (must be >= 0 and offset+count <= file size)