Package com.helger.commons.codec
Class DCTCodec
- java.lang.Object
-
- com.helger.commons.codec.DCTCodec
-
- All Implemented Interfaces:
IByteArrayDecoder,IDecoder<byte[],byte[]>
public class DCTCodec extends Object implements IByteArrayDecoder
Decoder for Discrete Cosinus Transformation (DCT)- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description DCTCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getDecoded(byte[] aEncodedBuffer, int nOfs, int nLen)Decode a byte array.static byte[]getDecodedDCT(byte[] aEncodedBuffer, int nOfs, int nLen)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.commons.codec.IByteArrayDecoder
getDecoded, getDecoded, getMaximumDecodedLength
-
-
-
-
Method Detail
-
getDecoded
@Nullable @ReturnsMutableCopy public byte[] getDecoded(@Nullable byte[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
Description copied from interface:IByteArrayDecoderDecode a byte array.- Specified by:
getDecodedin interfaceIByteArrayDecoder- Parameters:
aEncodedBuffer- The byte array to be decoded. May benull.nOfs- Offset into the byte array to start from.nLen- Number of bytes starting from offset to consider.- Returns:
- The decoded byte array or
nullif the parameter wasnull.
-
getDecodedDCT
@Nullable @ReturnsMutableCopy public static byte[] getDecodedDCT(@Nullable byte[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
-
-