src/org/ohmage/domain/Image.java
public void closeInputStream() throws DomainException {
			
			try {
				if(inputStream != null) {
					LOGGER.info("Closing input stream: " + inputStream.toString());
					inputStream.close();
				}
				bufferedImage = null;
				
			} catch(IOException e) {
				if (url != null)
					throw new DomainException("The input stream could not be close: " + url, e);
				else 
					throw new DomainException("The input stream could not be close. ", e);
			}
		}
/**
		 * Close the inputStream to the data.
		 * 
		 * @throws DomainException There was an error closing a connection to
		 * 						   the data.
		 */
Close the inputStream to the data.

@throws DomainException There was an error closing a connection to
the data.
Close the inputStream to the data . @throws DomainException There was an error closing a connection to the data .
public void closeInputStream() throws DomainException {
			try {
				if(inputStream != null) {
					LOGGER.info("Closing input stream: " + inputStream.toString());
					inputStream.close();
				}
				bufferedImage = null;
			} catch(IOException e) {
				if (url != null)
					throw new DomainException("The input stream could not be close: " + url, e);
				else 
					throw new DomainException("The input stream could not be close. ", e);
			}
		}
public void closeInputStream ( ) throws DomainException { try { if ( inputStream != null ) { LOGGER . info ( "Closing input stream: " + inputStream . toString ( ) ) ; inputStream . close ( ) ; } bufferedImage = null ; } catch ( IOException e ) { if ( url != null ) throw new DomainException ( "The input stream could not be close: " + url , e ) ; else throw new DomainException ( "The input stream could not be close. " , e ) ; } }
Close the inputStream to the data.
Close the inputStream to the data .