Package steganography.audio.overlays
Class MP3ShuffleOverlay
- java.lang.Object
-
- steganography.audio.overlays.MP3SequenceOverlay
-
- steganography.audio.overlays.MP3ShuffleOverlay
-
- All Implemented Interfaces:
AudioOverlay
public class MP3ShuffleOverlay extends MP3SequenceOverlay
This class returns the MP3 data bytes randomized according to a seed.- Author:
- Richard Rudek
-
-
Field Summary
-
Fields inherited from class steganography.audio.overlays.MP3SequenceOverlay
currentPosition, dataByteOrder, mp3Bytes
-
-
Constructor Summary
Constructors Constructor Description MP3ShuffleOverlay(byte[] bytes, long seed)
Adds a shuffle overlay to a given byte array containing an MP3 file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createOverlay(long seed)
Shuffles the data byte order randomly according to the seed.-
Methods inherited from class steganography.audio.overlays.MP3SequenceOverlay
available, getBytes, next, setByte
-
-
-
-
Constructor Detail
-
MP3ShuffleOverlay
public MP3ShuffleOverlay(byte[] bytes, long seed) throws AudioNotFoundException
Adds a shuffle overlay to a given byte array containing an MP3 file. This overlay retrieves only the data bytes of the MP3 file and returns the bytes randomized according to a seed.- Parameters:
bytes
- byte array containing an MP§ fileseed
- seed to shuffle the byte order by- Throws:
AudioNotFoundException
- if the given byte array is null or does not contain an MP3 file
-
-
Method Detail
-
createOverlay
protected void createOverlay(long seed)
Shuffles the data byte order randomly according to the seed.- Overrides:
createOverlay
in classMP3SequenceOverlay
- Parameters:
seed
- the seed that influences the dataByteOrder
-
-