@Nonnull @Nonempty public String getNewLineString () { return m_eNewLineMode.getText (); }
@Nonnull @Nonempty public String getNewLineString () { return m_eNewLineMode.getText (); }
@Nonnull @Nonempty public final String getNewLineString () { return m_eNewLineMode.getText (); }
private void _write (final Writer out, final String sText) throws IOException { String text = sText; while (text.indexOf ("${") != -1) { text = _substitute (text); } // TODO :: Added by Sreenivas on 12 June 2013 for 6.0 release, merged in to // 6.1 release for sake of compatibility by cainsley ... This needs to be // removed urgently!!! if (text.startsWith ("\\#")) { // Hack to escape # for C++ text = text.substring (1); } out.write (text); out.write (m_eNewLineMode.getText ()); }
@Nonnull protected InputStream getMDNStream (@Nonnull final IMessageMDN aMdn) { final String sNewLine = ENewLineMode.DEFAULT.getText (); final StringBuilder aSB = new StringBuilder (); // write HTTP headers to the string buffer aSB.append ("MDN Headers:").append (sNewLine); // Should use ISO-8859-1 charset for HTTP headers aMdn.headers ().forEachHeaderLine (sHeaderLine -> aSB.append (sHeaderLine).append (sNewLine)); // Empty line aSB.append (sNewLine); // write attributes to the string buffer aSB.append ("MDN Attributes:").append (sNewLine); for (final Map.Entry <String, String> aEntry : aMdn.attrs ().entrySet ()) { aSB.append (aEntry.getKey ()).append (": ").append (aEntry.getValue ()).append (sNewLine); } // finally, write the MDN text aSB.append ("Text:").append (sNewLine).append (aMdn.getText ()); return new NonBlockingByteArrayInputStream (aSB.toString ().getBytes (getCharset ())); } }
final ICommonsList <String> aMsgLines = StringHelper.getExploded (ENewLineMode.DEFAULT.getText (), formatMessage (aSessionLogEntry)); final int nMaxIndex = aMsgLines.size ();