loci.formats.services

## Interface JPEGXRService

- All Superinterfaces:
    loci.common.services.Service
  All Known Implementing Classes:
    JPEGXRServiceImpl

      public interface JPEGXRService
      extends loci.common.services.Service

  Interface defining methods for working with JPEG-XR data

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `decompress(byte[] compressed)` Decompress the given JPEG-XR compressed byte array and return as a byte array.

- - ### Method Detail

    - #### decompress

          byte[] decompress(byte[] compressed)
                     throws FormatException

      Decompress the given JPEG-XR compressed byte array and return as a byte array. Opening and closing of decoders and streams is handled internally.
      Parameters:
        `compressed` - the complete JPEG-XR compressed data
      Returns:
        raw decompressed bytes
      Throws:
        `FormatException` - if an error occurs during decompression

Copyright © 2026 Open Microscopy Environment