Package ch.heigvd.dai.commands
Class Hide
java.lang.Object
ch.heigvd.dai.commands.Hide
Implements the
hide
subcommand for executing the program on a CLI.
This class defines the parameters and options that are only specific for this subcommand. For
checking the usage of the subcommand, use the --help
option.
- Author:
- Pedro Alves da Silva, Gonçalo Carvalheiro Heleno
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncall()
Call function that contains the logic of the subcommand.private boolean
isPowerOfTwo
(int n)
-
Field Details
-
parent
-
filenameOutput
-
bitsPerByte
private int bitsPerByte
-
-
Constructor Details
-
Hide
public Hide()
-
-
Method Details
-
call
Call function that contains the logic of the subcommand.This function performs the multiple input validation checks and outputs an exit code accordingly. An error message is displayed to explain why the command failed.
-
isPowerOfTwo
private boolean isPowerOfTwo(int n)
-