Где ошибка?
package com.javarush.task.task18.task1810;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
DownloadException
*/
public class Solution {
public static void main(String[] args) throws DownloadException, IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String title = reader.readLine();
reader.close();
ArrayList<Byte> list = new ArrayList<>();
FileInputStream input = new FileInputStream(title);
int a = 0;
while (input.available() > 0) {
byte buffer[] = new byte[10000];
int count = input.read(buffer);
list.add(buffer[a]);
a++;
}
input.close();
if (list.size() < 1000) throw new DownloadException();
}
}
}
public static class DownloadException extends Exception {
}
}