S - source data type (data contained in decoded blocks)T - target data type (data contained in encoded blocks)public interface DatasetCodec<S,T>
DataBlock.
This class is N5's analogue to Zarr's array-to-array codec.
| Modifier and Type | Method and Description |
|---|---|
static <S,T> BlockCodec<S> |
concatenate(DatasetCodec<S,T> datasetCodec,
BlockCodec<T> blockCodec)
Create a
BlockCodec that, for encoding, first applies datasetCodec and then blockCodec (and does the same in reverse
order for decoding). |
DataBlock<S> |
decode(DataBlock<T> dataBlock) |
DataBlock<T> |
encode(DataBlock<S> block) |
DataBlock<T> encode(DataBlock<S> block) throws N5Exception.N5IOException
N5Exception.N5IOExceptionDataBlock<S> decode(DataBlock<T> dataBlock) throws N5Exception.N5IOException
N5Exception.N5IOExceptionstatic <S,T> BlockCodec<S> concatenate(DatasetCodec<S,T> datasetCodec, BlockCodec<T> blockCodec)
BlockCodec that, for encoding, first applies datasetCodec and then blockCodec (and does the same in reverse
order for decoding).S - the source type of this codecT - the target type of this codecdatasetCodec - the DatasetCodec to applyblockCodec - the wrapped BlockCodecCopyright © 2017–2026 Saalfeld Lab. All rights reserved.