@Override
	public void readFile(int name, int[] array) throws FileNotFoundException{
		if(array.length != totalnumbers)
			throw new ArrayIndexOutOfBoundsException("Array is not of the correct size!");
		File file = getFile(name);
		try {
			BZip2CompressorInputStream fs = new BZip2CompressorInputStream(new FileInputStream(file));;
			fs.read(buffer.array(), 0, buffer.capacity()); 
//			FileChannel fc = fs.getChannel();
//			fc.read(buffer);
			buffer.rewind();
			for(int i = 0; i < totalnumbers; i++){
				array[i] = buffer.getInt();
			}
			buffer.clear();
			fs.close();
			return;
		} catch (FileNotFoundException e) {
			throw e;
		} catch (IOException e) {
			e.printStackTrace();
		}
		return;
	}