Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ public static void main(String[] args) throws IOException {
Menu menu = new Menu();
menu.openMenu();
}

}
1 change: 0 additions & 1 deletion src/constants/Constants.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package constants;

public class Constants {
/**
* English alphabet, numbers and some symbols.
Expand Down
1 change: 0 additions & 1 deletion src/constants/ConstantsForValidation.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package constants;

import java.util.List;

public class ConstantsForValidation {
/**
* Paths to system files and directories that cannot be overwritten.
Expand Down
1 change: 0 additions & 1 deletion src/constants/MenuConstants.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package constants;

public class MenuConstants {
public static final String MAIN_MENU = """
\nМеню программы "ШИФР ЦЕЗАРЯ":
Expand Down
1 change: 0 additions & 1 deletion src/decryption/Decryption.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package decryption;

import constants.Constants;
import java.util.Arrays;
import java.util.List;
Expand Down
1 change: 0 additions & 1 deletion src/decryption/DecryptionByBruteForce.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package decryption;

import constants.Constants;
import workingWithText.SourceText;
import java.io.IOException;
Expand Down
1 change: 0 additions & 1 deletion src/decryption/DecryptionByStatisticalAnalysis.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package decryption;

import constants.Constants;
import workingWithText.SourceText;
import java.io.IOException;
Expand Down
1 change: 0 additions & 1 deletion src/encryption/Encryption.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import constants.Constants;
import java.util.Arrays;
import java.util.List;

/**
* The class that performs key encryption in the Caesar Cipher.
*/
Expand Down
1 change: 0 additions & 1 deletion src/exception/IncorrectFileNameException.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package exception;

import java.io.IOException;
/**
* Signals that the file name is incorrect.
Expand Down
1 change: 0 additions & 1 deletion src/exception/SystemFileException.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package exception;

import java.io.IOException;
/**
* Signals that the file name is system file
Expand Down
1 change: 0 additions & 1 deletion src/menu/Menu.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package menu;

import decryption.Decryption;
import decryption.DecryptionByBruteForce;
import decryption.DecryptionByStatisticalAnalysis;
Expand Down
2 changes: 1 addition & 1 deletion src/texts/exampleText.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The sun was already slipping behind a snow-capped ridge when I drove into Koishaur Valley.
The Ossetian coachman, singing at the top of his voice, tirelessly urged his horses on in order to reach the summit of Koishaur Mountain before nightfall.
What a glorious spot this valley is!
What A glorious spot this valley is!
All around it tower awesome mountains, reddish crags draped with hanging ivy and crowned with clusters of plane trees, yellow cliffs grooved by torrents, with a gilded fringe of snow high above, while down below the Aragva River embraces a nameless stream that noisily bursts forth from a black, gloom-filled gorge and then stretches in a silvery ribbon into the distance, its surface shimmering like the scaly back of a snake.
2 changes: 1 addition & 1 deletion src/texts/textENG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ I can't remember a bluer or fresher morning. The sun had barely peeped over the
The exultant rays of the new day hadn't yet penetrated into the gorge. Now they gilded only the tops of the crags that towered above us on both sides.
The dense foliage of the bushes growing in the deep crevices of the cliffs showered a silvery rain upon us at the slightest breath of wind.
I remember that at that moment I loved nature as never before.
With what curiosity did I gaze at each dewdrop that trembled on the broad vine leaves, reflecting millions of rainbow glints!
With what curiosity did I gaze at each dewdrop that trembled On the broad vine leaves, reflecting millions of rainbow glints!
How eagerly my eyes sought to pierce the hazy distance! There the path grew narrower and narrower, the crags bluer and more awesome, seeming to merge at last into an impregnable wall.
We rode along in silence.
1 change: 0 additions & 1 deletion src/validation/FileValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.nio.file.Path;

import static constants.ConstantsForValidation.DIRECTORY_PATH_TO_FILES;

/**
* The class that checks files
*/
Expand Down
1 change: 0 additions & 1 deletion src/validation/InputValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.Scanner;
import static constants.ConstantsForValidation.CHOICE_AGAIN;
import static constants.ConstantsForValidation.INVALID_VALUE;

/**
* The class that validates input data
*/
Expand Down
1 change: 0 additions & 1 deletion src/workingWithText/SourceText.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;

/**
* The class that works with the source text
*/
Expand Down
1 change: 0 additions & 1 deletion src/workingWithText/WriteСonvertedText.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
public class WriteСonvertedText {
private FileValidator fileValidator = new FileValidator();

/**
* The method that writes text to a file
*
Expand Down