Project

General

Profile

« Previous | Next » 

Revision d242b3c3

Added by Andreas Müller about 16 years ago

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/CdmUtils.java
3 3
 */
4 4
package eu.etaxonomy.cdm.common;
5 5

  
6
import java.io.BufferedReader;
6 7
import java.io.File;
7 8
import java.io.IOException;
8 9
import java.io.InputStream;
......
87 88
		return "Oje";
88 89
	}
89 90
	
91
	static public String readInputLine(String inputQuestion){
92
		try {
93
			
94
			System.out.print(inputQuestion);
95
			BufferedReader in = new BufferedReader( new java.io.InputStreamReader( System.in )); 
96
			String input; 
97
			input = in.readLine(); 
98
			return input;
99
		} catch (IOException e) {
100
			logger.warn("IOExeption");
101
			return null;
102
		}
103
	}
104
	
105
	static public String Nz(String value){
106
		return (value == null ? "" : value);
107
	}
108
	
90 109
}

Also available in: Unified diff