Code example for FileDescriptor

0
	} 
 
	 
	FileOutputStream fos;
	private void initFOS() { 
		fos = new FileOutputStream(new FileDescriptor());
		new Thread() {
			public void run() { 
				byte[] buffer = new byte[1024];
				while (getBuffer(buffer)) {
					try { 
						fos.write(buffer, 0, 1024);
					} catch (IOException e) {
						// TODO Auto-generated catch block 
						e.printStackTrace();
					} 
				} 
 
			}; 
		}.start();