public void addMapping(BufferedReader reader) throws IOException { String line; while ((line = reader.readLine()) != null) { if (!line.startsWith("#")) //$NON-NLS-1$ { int index = line.indexOf(" "); //$NON-NLS-1$ services.put(line.substring(0, index), Encoder.escape(line .substring(index + 1))); } } }
public void addInterMap(BufferedReader reader) throws IOException { String line; while ((line = reader.readLine()) != null) { int index = line.indexOf(" "); interWiki.put(line.substring(0, index), Encoder.escape(line .substring(index + 1))); }; }
public void addInterMap(BufferedReader reader) throws IOException { String line; while ((line = reader.readLine()) != null) { int index = line.indexOf(" "); interWiki.put(line.substring(0, index), Encoder.escape(line .substring(index + 1))); }; }
public void addMapping(BufferedReader reader) throws IOException { String line; while ((line = reader.readLine()) != null) { if (!line.startsWith("#")) //$NON-NLS-1$ { int index = line.indexOf(" "); //$NON-NLS-1$ services.put(line.substring(0, index), Encoder.escape(line .substring(index + 1))); } } }
/** * Render the title from the given Channel to the given StringBuffer, * using CSS styled 'div' tags. In this case, the title will be enclosed * in a <div> with the class <code>rss.channel.title</code>. If * the channel includes a link, the title will be rendered as a link to * that URL, and the <a> tag will also be of class * <code>rss.channel.title</code> * @param feed the RSS Channel we retrieved via the Feed URL * @param buf the StringBuffer we're using to prepare the output * TODO Figure out how to stop Radeox from filtering the URLs */ private void renderTitleCSS(SyndFeed feed, StringBuffer buf) { buf.append(NEWLINE).append("<div class='rsschanneltitle'>"); if (feed.getLink() != null) { buf.append("<a class='rsschanneltitle' href=\"") .append(Encoder.escape(feed.getLink())) .append("\">"); } buf.append(feed.getTitle()); if (feed.getLink() != null) buf.append("</a>"); buf.append(NEWLINE).append("</div>"); }
.append(Encoder.escape(entry.getLink())) .append("\">");
writer.write(NEWLINE); writer.write("<form class='rsstextinputform' action=\""); writer.write(Encoder.escape(textInput.getLink())); writer.write("\" method=\"get\">"); writer.write(NEWLINE);
+ Encoder.escape(text.substring(1));
text = Encoder.escape(text);
+ Encoder.escape(text.substring(1));
writer.write("<a href=\"" + Encoder.escape(link) + "\""); //$NON-NLS-1$ //$NON-NLS-2$ if (target != null) writer.write("target=\"" + Encoder.escape(target) + "\""); //$NON-NLS-1$ //$NON-NLS-2$ writer.write(Encoder.escape(imageName)); writer.write("\" "); //$NON-NLS-1$ if (cssclass != null) writer.write(Encoder.escape(cssclass)); writer.write("\" "); //$NON-NLS-1$ writer.write("alt=\"" + Encoder.escape(alt) + "\" "); //$NON-NLS-1$ //$NON-NLS-2$ writer.write("title=\"" + Encoder.escape(title) + "\" "); //$NON-NLS-1$ //$NON-NLS-2$
buffer.append(Encoder.escape(result.group(0)));
return; text = Encoder.escape(text);