Укажите на ошибку. Спасибо
package com.javarush.task.task18.task1826;
import java.io.*;
/*
Шифровка
*/
public class Solution {
public static void main(String[] args) throws FileNotFoundException {
BufferedInputStream bis = new BufferedInputStream (new FileInputStream(args[1]));
BufferedOutputStream bos = new BufferedOutputStream (new FileOutputStream(args[2]));
try{
switch (args[0]) {
case ("-e"):
while (bis.available() > 0) {
//int bytes = bis.read() + 1;
bos.write(bis.read() + 1);
break;
}
case ("-d"):
while (bis.available() > 0) {
//int bytes = bis.read() - 1;
bos.write(bis.read() - 1);
break;
}
bis.close();
bos.close();
}
}
catch (Exception e){
e.printStackTrace();
}
}
}