Code example for FileOutputStream

Methods: close

0
		PwDbV4Output output =  (PwDbV4Output) PwDbOutput.getInstance(db, bos);
		output.output();
		 
		byte[] data = bos.toByteArray();
		 
		FileOutputStream fos = new FileOutputStream("/sdcard/test-out.kdbx", false);
		 
		InputStream bis = new ByteArrayInputStream(data);
		bis = new CopyInputStream(bis, fos);
		importer = new ImporterV4();
		db = importer.openDatabase(bis, "12345", "");
		bis.close();
		 
		fos.close();
		 
	} 
	 
	@Override 
	protected void setUp() throws Exception { 
		super.setUp();