src/org/ohmage/domain/Media.java
public final File writeContent(final File directory) throws DomainException {
		
		if (directory == null)
			throw new DomainException("Directory to write the content file is null");
		
		File mediaFile = new File(directory.getAbsolutePath() + "/" + id.toString());
		writeFile(mediaFile);
		return mediaFile;
	}
/**
	 * Writes the media content to the given file. 
	 *  
	 * @param directory The directory to write the media to.
	 * 
	 * @throws DomainException There was an error reading or writing 
	 * 						   the file.
	 * 
	 */
Writes the media content to the given file.

@param directory The directory to write the media to.

@throws DomainException There was an error reading or writing
the file.
Writes the media content to the given file . @param directory The directory to write the media to . @throws DomainException There was an error reading or writing the file .
public final File writeContent(final File directory) throws DomainException {
		if (directory == null)
			throw new DomainException("Directory to write the content file is null");
		File mediaFile = new File(directory.getAbsolutePath() + "/" + id.toString());
		writeFile(mediaFile);
		return mediaFile;
	}
public final File writeContent ( final File directory ) throws DomainException { if ( directory == null ) throw new DomainException ( "Directory to write the content file is null" ) ; File mediaFile = new File ( directory . getAbsolutePath ( ) + "/" + id . toString ( ) ) ; writeFile ( mediaFile ) ; return mediaFile ; }
Writes the media content to the given file.
Writes the media content to the given file .