public void connect() throws ConnectionException {
		try {
			setOutputStream(fileOutputStream = new FileOutputStream(filename));
			connected = true;
		}
		catch(IOException e) {
			throw new ConnectionException(e);
		}
	}