Code example for FileNotFoundException

Methods: printStackTrace

0
	public synchronized void open() { 
		if (!isStreamOpened()) { 
			try { 
				outputStream = new FileOutputStream(file, true);
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			} 
		} 
	} 
 
	@Override 
	public synchronized void close() { 
		if (isStreamOpened()) { 
			try { 
				outputStream.close();
			} catch (IOException e) {
				e.printStackTrace();
			} 
			outputStream = null;
		}