Here you can find the source of removeNewLineAndTab(String value)
Parameter | Description |
---|---|
value | The Value of the MzTab Term |
public static String removeNewLineAndTab(String value)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { /**/*from w w w. java 2s.com*/ * If there exists reserved characters in value, remove them all. * * @param value The Value of the MzTab Term * @return Return a value without tab */ public static String removeNewLineAndTab(String value) { if (value != null) { value = value.trim(); // define a reserved character list. List<String> reserveCharList = new ArrayList<String>(); reserveCharList.add("\n"); reserveCharList.add("\t"); for (String c : reserveCharList) { value = value.replaceAll(c, " "); } } return value; } }