private void fillBuffer() throws IOException{
		buffer = buffer.substring(offset);
		offset = 0;
		while(buffer.length() < bufferSize){
			String nextLine = input.readLine();
			if(nextLine != null){
				buffer = buffer.concat(nextLine).concat(String.format("%n"));
			}
			else{
				break;
			}
		}
	}