Index

B C E F G H I M P R S V W _ 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

B

BITS_PER_BYTE_SHIFT - Static variable in class ch.heigvd.dai.utilities.BmpFile
 
bitsPerByte - Variable in class ch.heigvd.dai.commands.Hide
 
BmpFile - Class in ch.heigvd.dai.utilities
Implements the required logic to parse a bitmap file and modify its content.
BmpFile(String) - Constructor for class ch.heigvd.dai.utilities.BmpFile
Parses and splits a bitmap file into useful data.
BmpFileException - Exception Class in ch.heigvd.dai.exceptions
Defines an exception to be used by BmpFile.
BmpFileException(String) - Constructor for exception class ch.heigvd.dai.exceptions.BmpFileException
 

C

call() - Method in class ch.heigvd.dai.commands.Expose
Call function that contains the logic of the subcommand.
call() - Method in class ch.heigvd.dai.commands.Hide
Call function that contains the logic of the subcommand.
ch.heigvd.dai - package ch.heigvd.dai
 
ch.heigvd.dai.commands - package ch.heigvd.dai.commands
 
ch.heigvd.dai.exceptions - package ch.heigvd.dai.exceptions
 
ch.heigvd.dai.utilities - package ch.heigvd.dai.utilities
 

E

Expose - Class in ch.heigvd.dai.commands
Implements the hide subcommand for executing the program on a CLI.
Expose() - Constructor for class ch.heigvd.dai.commands.Expose
 
exposeMessage(BmpFile, byte[]) - Method in class ch.heigvd.dai.utilities.MessageManipulator
Extracts a hidden message from the provided data array.

F

file - Variable in class ch.heigvd.dai.utilities.FileManipulator
 
FileManipulator - Class in ch.heigvd.dai.utilities
Implements the necessary functions to read/write the bytes of the file to hide/expose.
FileManipulator(String) - Constructor for class ch.heigvd.dai.utilities.FileManipulator
Main constructor.
FileManipulator(String, boolean) - Constructor for class ch.heigvd.dai.utilities.FileManipulator
Write constructor.
filenameBmpImage - Variable in class ch.heigvd.dai.commands.Root
 
filenameMessage - Variable in class ch.heigvd.dai.commands.Root
 
filenameOutput - Variable in class ch.heigvd.dai.commands.Hide
 
force - Variable in class ch.heigvd.dai.commands.Root
 
forceDisabled() - Method in class ch.heigvd.dai.commands.Root
Getter to check if the --force flag has been enabled.

G

getBitsPerByte() - Method in class ch.heigvd.dai.utilities.BmpFile
Returns the number of bits belonging to the hidden message per data byte.
getFilenameBmpImage() - Method in class ch.heigvd.dai.commands.Root
Getter for the subcommands to read the path to the bitmap image passed as an argument.
getFilenameMessage() - Method in class ch.heigvd.dai.commands.Root
Getter for the subcommands to read the path to the message file to be hidden passed as an argument.
getMessageLength() - Method in class ch.heigvd.dai.utilities.BmpFile
Returns the hidden message's length.
getPixelArray() - Method in class ch.heigvd.dai.utilities.BmpFile
Returns the pixel array that was read from the BMP file.

H

hasMessage() - Method in class ch.heigvd.dai.utilities.BmpFile
Returns whether this file has a hidden message inside.
HEADER_FIELDS_LEN - Static variable in class ch.heigvd.dai.utilities.BmpFile
 
HEADER_LEN - Static variable in class ch.heigvd.dai.utilities.BmpFile
 
Hide - Class in ch.heigvd.dai.commands
Implements the hide subcommand for executing the program on a CLI.
Hide() - Constructor for class ch.heigvd.dai.commands.Hide
 
hideMessage(BmpFile, byte[], int) - Method in class ch.heigvd.dai.utilities.MessageManipulator
Hides a provided message inside the provided data array.

I

isBmpFileValid() - Method in class ch.heigvd.dai.commands.Root
Checks if the path for the bitmap image is for a valid file and if it exists.
isMessageFileValid() - Method in class ch.heigvd.dai.commands.Root
Checks if the path for the message file is for a valid file and if it exists.
isPowerOfTwo(int) - Method in class ch.heigvd.dai.commands.Hide
 
isValidMagic(byte[]) - Method in class ch.heigvd.dai.utilities.BmpFile
Checks whether the provided magic bytes are valid for a bitmap file.

M

MAGIC_BYTES_LEN - Static variable in class ch.heigvd.dai.utilities.BmpFile
 
main(String[]) - Static method in class ch.heigvd.dai.Main
Main function to start the program.
Main - Class in ch.heigvd.dai
Main class.
Main() - Constructor for class ch.heigvd.dai.Main
 
MAX_BITS_PER_BYTE - Static variable in class ch.heigvd.dai.utilities.BmpFile
 
MAX_MESSAGE_LENGTH - Static variable in class ch.heigvd.dai.utilities.BmpFile
 
MessageManipulationException - Exception Class in ch.heigvd.dai.exceptions
Defines an exception to be used by MessageManipulator.
MessageManipulationException(String) - Constructor for exception class ch.heigvd.dai.exceptions.MessageManipulationException
 
MessageManipulator - Class in ch.heigvd.dai.utilities
Implements the logic necessary to hide and expose an array of bytes inside a bitmap image, which is itself parsed using the BmpFile class.
MessageManipulator() - Constructor for class ch.heigvd.dai.utilities.MessageManipulator
 
MIN_BITS_PER_BYTE - Static variable in class ch.heigvd.dai.utilities.BmpFile
 
MIN_MESSAGE_LENGTH - Static variable in class ch.heigvd.dai.utilities.BmpFile
 

P

parent - Variable in class ch.heigvd.dai.commands.Expose
 
parent - Variable in class ch.heigvd.dai.commands.Hide
 

R

readBitmapHeader(BufferedInputStream) - Method in class ch.heigvd.dai.utilities.BmpFile
Reads and checks the file's header.
readBytesFromFile() - Method in class ch.heigvd.dai.utilities.FileManipulator
Reads the file linked to the object and creates a byte array with its content.
readPixelArray(BufferedInputStream) - Method in class ch.heigvd.dai.utilities.BmpFile
Reads the bitmap file's pixel array.
Root - Class in ch.heigvd.dai.commands
Implements the root command for executing the program on a CLI.
Root() - Constructor for class ch.heigvd.dai.commands.Root
 

S

saveFile(String) - Method in class ch.heigvd.dai.utilities.BmpFile
Dumps the pixel array into the provided output file.
setData(byte[], int, int) - Method in class ch.heigvd.dai.utilities.BmpFile
Changes the pixel array data, hidden message length, and number of bits per data byte.

V

VALID_MAGICS - Static variable in class ch.heigvd.dai.utilities.BmpFile
 

W

writeBytesToFile(byte[]) - Method in class ch.heigvd.dai.utilities.FileManipulator
Writes a byte array to a file in the given output.
writeEnabled - Variable in class ch.heigvd.dai.utilities.FileManipulator
 

_

_bitsPerByte - Variable in class ch.heigvd.dai.utilities.BmpFile
 
_bmpFilePath - Variable in class ch.heigvd.dai.utilities.BmpFile
 
_fileSize - Variable in class ch.heigvd.dai.utilities.BmpFile
 
_hasMessage - Variable in class ch.heigvd.dai.utilities.BmpFile
 
_messageLength - Variable in class ch.heigvd.dai.utilities.BmpFile
 
_pixelArray - Variable in class ch.heigvd.dai.utilities.BmpFile
 
_pixelArrayOffset - Variable in class ch.heigvd.dai.utilities.BmpFile
 
B C E F G H I M P R S V W _ 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form