Package com.helger.commons.codec
Class DCTCodec
java.lang.Object
com.helger.commons.codec.DCTCodec
- All Implemented Interfaces:
IByteArrayDecoder,IDecoder<byte[],byte[]>
Decoder for Discrete Cosinus Transformation (DCT)
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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, waitMethods inherited from interface com.helger.commons.codec.IByteArrayDecoder
getDecoded, getDecoded, getMaximumDecodedLength
-
Constructor Details
-
DCTCodec
public DCTCodec()
-
-
Method Details
-
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)
-