2015-06-08 18:29:37 +00:00
|
|
|
/*
|
2018-10-30 00:09:20 +00:00
|
|
|
* Copyright (c) 2010-2015 SAP SE.
|
|
|
|
* 2016-2018 The University of Sheffield.
|
|
|
|
*
|
2015-06-08 18:29:37 +00:00
|
|
|
* All rights reserved. This program and the accompanying materials
|
2018-10-30 00:09:20 +00:00
|
|
|
* This program and the accompanying materials are made
|
|
|
|
* available under the terms of the Eclipse Public License 2.0
|
|
|
|
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
2015-06-08 18:29:37 +00:00
|
|
|
*
|
2018-10-30 00:09:20 +00:00
|
|
|
* SPDX-License-Identifier: EPL-2.0
|
2015-06-08 18:29:37 +00:00
|
|
|
*/
|
|
|
|
|
2017-05-21 14:58:16 +00:00
|
|
|
package com.logicalhacking.dasca.dataflow.test.data.dummy;
|
2015-06-08 18:29:37 +00:00
|
|
|
|
|
|
|
import java.io.BufferedReader;
|
|
|
|
import java.io.InputStreamReader;
|
|
|
|
import java.sql.Connection;
|
|
|
|
|
|
|
|
public class IO {
|
|
|
|
|
2015-06-08 19:43:23 +00:00
|
|
|
public static Connection getDBConnection() {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return null;
|
|
|
|
}
|
2015-06-08 18:29:37 +00:00
|
|
|
|
2015-06-08 19:43:23 +00:00
|
|
|
public static void writeString(String string) {
|
|
|
|
// TODO Auto-generated method stub
|
2015-06-08 18:29:37 +00:00
|
|
|
|
2015-06-08 19:43:23 +00:00
|
|
|
}
|
2015-06-08 18:29:37 +00:00
|
|
|
|
2015-06-08 19:43:23 +00:00
|
|
|
public static String readLine() {
|
|
|
|
/*/ // add/remove '*' to switch
|
|
|
|
String s = "";
|
|
|
|
try {
|
|
|
|
InputStreamReader converter = new InputStreamReader(System.in);
|
|
|
|
BufferedReader in = new BufferedReader(converter);
|
|
|
|
s = in.readLine();
|
|
|
|
} catch (Exception e) {
|
|
|
|
System.out.println("Error! Exception: "+e);
|
|
|
|
}
|
|
|
|
return s;
|
|
|
|
/*/
|
|
|
|
return "";
|
|
|
|
/**/
|
|
|
|
}
|
2015-06-08 18:29:37 +00:00
|
|
|
|
2015-06-08 19:43:23 +00:00
|
|
|
public static String readLine2() {
|
|
|
|
/*/ // add/remove '*' to switch
|
|
|
|
String s = "";
|
|
|
|
try {
|
|
|
|
InputStreamReader converter = new InputStreamReader(System.in);
|
|
|
|
BufferedReader in = new BufferedReader(converter);
|
|
|
|
s = in.readLine();
|
|
|
|
} catch (Exception e) {
|
|
|
|
System.out.println("Error! Exception: "+e);
|
|
|
|
}
|
|
|
|
return s;
|
|
|
|
/*/
|
|
|
|
return "";
|
|
|
|
/**/
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String readLineGood() {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String sanitize(String s) {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
public static boolean testCondition(int i) throws IllegalArgumentException {
|
|
|
|
if(i<0) {
|
|
|
|
throw new IllegalArgumentException("number must be positive");
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void a() {
|
|
|
|
}
|
|
|
|
|
|
|
|
public static InputStreamReader getInputStreamReader() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static BufferedReader getBufferedReader() {
|
|
|
|
return null;
|
|
|
|
}
|
2015-06-08 18:29:37 +00:00
|
|
|
|
|
|
|
}
|