Parst die BankInfo-Daten aus einer Zeile der blz.properties.

@param text der Text (Value) aus der blz.properties.
@return das BankInfo-Objekt. Niemals NULL sondern hoechstens ein leeres Objekt.
432371
static BankInfo parse(String text) {
        BankInfo info = new BankInfo();
        if (text == null || text.length() == 0)
            return info;

        String[] cols = text.split("\\|");
        info.setName(getValue(cols, 0));
        info.setLocation(getValue(cols, 1));
        info.setBic(getValue(cols, 2));
        info.setChecksumMethod(getValue(cols, 3));
        info.setRdhAddress(getValue(cols, 4));
        info.setPinTanAddress(getValue(cols, 5));
        info.setRdhVersion(HBCIVersion.byId(getValue(cols, 6)));
        info.setPinTanVersion(HBCIVersion.byId(getValue(cols, 7)));

        return info;
    }
1284759
public static Map<String, Object> convertTextToDataMap(String text) throws IOException{
		Map<String, Object> dataMap = null; 
		Properties p = new Properties();
		p.load(new StringReader(text));
			
		dataMap = new HashMap<String, Object>();
		for (Entry<Object, Object> entry: p.entrySet()){
			dataMap.put((String)entry.getKey(), entry.getValue());
		}
		return dataMap;
	}
1191939
public Document parseString(String text) throws SAXException {
        try {
            return parse(new InputSource(new StringReader(text)));
        } catch (IOException e) {
            throw new RuntimeException("unexpected world exception while reading memory stream", e);
        }
    }
94294
public static VersionNumber parseLastVersionNumber(@Nonnull final String text) {
		return VersionParser.parseLastVersionNumber(Check.notNull(text, "text"));
	}
175398
public String match(String text){
		if(null == text){
			return null;
		}
		List<String> matchAll = matchAll(text, 1);
		if(CollectionUtil.isNotEmpty(matchAll)){
			return matchAll.get(0);
		}
		return null;
	}
1029682
public void setText(String text) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
      if ((text == null) || text.length() < 257) {
        SibTr.entry(this, tc, "setText", text);
      }
      else {
        SibTr.entry(this, tc, "setText", new Object[]{text.length(), text.substring(0,200)+"..."});
      }
    }

    // If the payload is changing, we need to clear all the cached values.
    softRefToDocument = null;
    clearCachedLengths();

    // Set the payload data
    getPayload().setField(JmsTextBodyAccess.BODY_DATA_VALUE, text);

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setText");
  }
1055338
public static Date smartFormat(String text) {
        Date date = null;
        try {
            if (text == null || text.length() == 0) {
                date = null;
            } else {
                int length = text.length();
                if (text.indexOf("-") > 0) {
                    if (length == 10) {
                        date = formatStringToDate(text, Y_M_D);
                    } else if (length == 16) {
                        date = formatStringToDate(text, Y_M_D_HM);
                    } else if (length == 19) {
                        date = formatStringToDate(text, Y_M_D_HMS);
                    } else {
                        throw new IllegalArgumentException("日期长度不符合要求!");
                    }
                } else if (text.indexOf("/") > 0) {
                    if (length == 10) {
                        date = formatStringToDate(text, ymd);
                    } else if (length == 16) {
                        date = formatStringToDate(text, ymd_HM);
                    } else if (length == 19) {
                        date = formatStringToDate(text, ymd_HMS);
                    } else {
                        throw new IllegalArgumentException("日期长度不符合要求!");
                    }
                } else {
                    if (length == 10) {
                        date = formatStringToDate(text, YMD);
                    } else if (length == 13) {
                        date = new Date(Long.parseLong(text));
                    } else if (length == 16) {
                        date = formatStringToDate(text, YMDHM);
                    } else if (length == 19) {
                        date = formatStringToDate(text, YMDHMS);
                    } else {
                        throw new IllegalArgumentException("日期长度不符合要求!");
                    }
                }
            }
        } catch (Exception e) {
            throw new IllegalArgumentException("日期格式错误!");
        }
        return date;
    }
1166205
public static Instant instantUtc(String text) {
		Instant result = null;
		try {
			ZonedDateTime zdt = ZonedDateTime.parse(text, getFormater(DATE_FORMAT_UTC, "UTC"));
			//LocalDateTime ldt = LocalDateTime.parse(text, getFormater(DATE_FORMAT_UTC, "UTC"));
			result = zdt.toInstant();
		}
		catch (DateTimeParseException ex) {
			Say.warn("Instant not constructable {}", ex, text);
		}
		return result;
	}
452356
protected AstNode text() throws ScanException, ParseException {
		AstNode v = null;
		if (token.getSymbol() == TEXT) {
			v = new AstText(token.getImage());
			consumeToken();
		}
		return v;
	}
376103
public void setText(final String TEXT) {
        if (null == text) {
            _text = TEXT;
        } else {
            text.set(TEXT);
        }
    }
1342923
public Document literal(String text) {
        try {
            return parseString(text);        
        } catch (SAXException e) {
            throw new RuntimeException(text, e);
        }
    }
1055245
public String getLanguage (String text) {
    String language = null;
    TextObject textObject = textObjectFactory.forText(text);
    com.google.common.base.Optional<LdLocale> lang = languageDetector.detect(textObject);
    
    if (lang.isPresent()) {
      language = lang.get().toString();
    }
    
    return language;
  }
136670
public String predict(String text)
    {
        int y = model.decode(extractFeature(text, model.featureMap));
        if (y == -1)
            y = 0;
        return model.tagSet().stringOf(y);
    }
1157365
public <V> V convertFrom(final char[] text) {
        if (text == null) return null;
        return (V) convertFrom(text, 0, text.length);
    }
222016
public T find(String text)
    {
        T match = matcher.match(text, true);
        if (match != null)
        {
            String name = match.name();
            if (name.substring(0, Math.min(name.length(), text.length())).equalsIgnoreCase(text))
            {
                return match;
            }
        }
        return null;
    }
1369713
@Pure
	@SuppressWarnings("checkstyle:cyclomaticcomplexity")
	public static AttributeValueImpl parse(String text) {
		final AttributeValueImpl value = new AttributeValueImpl(text);
		if (text != null && !text.isEmpty()) {
			Object binValue;
			for (final AttributeType type : AttributeType.values()) {
				try {
					binValue = null;
					switch (type) {
					case BOOLEAN:
						binValue = value.getBoolean();
						break;
					case DATE:
						binValue = value.getDate();
						break;
					case ENUMERATION:
						binValue = value.getEnumeration();
						break;
					case INET_ADDRESS:
						binValue = value.getInetAddress();
						break;
					case INTEGER:
						binValue = value.getInteger();
						break;
					case OBJECT:
						binValue = value.getJavaObject();
						break;
					case POINT:
						binValue = parsePoint((String) value.value, true);
						break;
					case POINT3D:
						binValue = parsePoint3D((String) value.value, true);
						break;
					case POLYLINE:
						binValue = parsePolyline((String) value.value, true);
						break;
					case POLYLINE3D:
						binValue = parsePolyline3D((String) value.value, true);
						break;
					case REAL:
						binValue = value.getReal();
						break;
					case STRING:
						binValue = value.getString();
						break;
					case TIMESTAMP:
						binValue = value.getTimestamp();
						break;
					case TYPE:
						binValue = value.getJavaClass();
						break;
					case URI:
						binValue = parseURI((String) value.value);
						break;
					case URL:
						binValue = value.getURL();
						break;
					case UUID:
						binValue = parseUUID((String) value.value);
						break;
					default:
						//
					}
					if (binValue != null) {
						return new AttributeValueImpl(type, binValue);
					}
				} catch (Throwable exception) {
					//
				}
			}
		}
		return value;
	}
905173
public Tag getTagForPattern(CharSequence text) {
		for (final Tag tag : Tag.values()) {
			Pattern pattern = this.compiledPatterns.get(tag);
			if (pattern == null) {
				pattern = Pattern.compile("^\\s*" + getPattern(tag), Pattern.DOTALL); //$NON-NLS-1$
				this.compiledPatterns.put(tag, pattern);
			}
			final Matcher matcher = pattern.matcher(text);
			if (matcher.find()) {
				return tag;
			}
		}
		return null;
	}