Example usage for java.lang Appendable append

List of usage examples for java.lang Appendable append

Introduction

In this page you can find the example usage for java.lang Appendable append.

Prototype

Appendable append(char c) throws IOException;

Source Link

Document

Appends the specified character to this Appendable .

Usage

From source file:org.shredzone.cilla.site.renderer.CommentRendererStrategyImpl.java

@Override
public void closeContainer(Appendable out) throws IOException {
    out.append("</div>");
}

From source file:org.shredzone.cilla.site.renderer.CommentRendererStrategyImpl.java

@Override
public void openContainer(Appendable out) throws IOException {
    out.append("<div>").append("<h1 id=\"comments\">").append(bundle.getString("comment.title"))
            .append("</h1>");
}

From source file:org.apache.cayenne.exp.parser.ASTObjPath.java

/**
 * @since 4.0/*from   ww  w .  ja v  a  2 s.  c om*/
 */
@Override
public void appendAsString(Appendable out) throws IOException {
    out.append(path);
}

From source file:org.shredzone.cilla.site.renderer.PaginatorStrategyImpl.java

@Override
public void openContainer(Appendable out) throws IOException {
    out.append("<div>");
}

From source file:org.apache.cayenne.exp.parser.ASTObjPath.java

/**
 * @since 4.0/*from   w  ww .j  a va  2  s  .  c  o  m*/
 */
@Override
public void appendAsEJBQL(List<Object> parameterAccumulator, Appendable out, String rootId) throws IOException {
    out.append(rootId);
    out.append('.');
    out.append(path);
}

From source file:org.apache.shindig.protocol.conversion.BeanAtomConverter.java

public void append(Appendable buf, Object pojo) throws IOException {
    buf.append(convertToString(pojo));
}

From source file:org.easymock.itests.OsgiTest.java

public void testCanMock() throws IOException {
    Appendable mock = mock(Appendable.class);
    expect(mock.append("test")).andReturn(mock);
    replayAll();//www  .jav  a 2s.c om
    assertSame(mock, mock.append("test"));
    verifyAll();
}

From source file:de.jfachwert.bank.GeldbetragFormatter.java

/**
 * Gibt lediglich den Geldbetrag aus.//from   w  ww  . j  a  v  a  2  s.  c  o  m
 * <p>
 * Beispiele fuer {@code Appendable} sind {@code StringBuilder}, {@code StringBuffer}
 * oder {@code Writer}, wobei nur letzteres eine {@code IOException} verursachen kann.
 *
 * @param appendable z.B. einen StringBuilder
 * @param amount     Geldbetrag
 * @throws IOException kann bei einem {@code Writer} auftreten
 */
@Override
public void print(Appendable appendable, MonetaryAmount amount) throws IOException {
    appendable.append(queryFrom(amount));
}

From source file:org.shredzone.cilla.site.renderer.PaginatorStrategyImpl.java

@Override
public void previousLink(Appendable out, String url) throws IOException {
    if (url != null) {
        out.append("<a class=\"button\"");
        out.append(" href=\"").append(url).append("\">");
        out.append(bundle.getString("paginator.previous"));
        out.append("</a>");
    }// w w  w .j  a v a2 s.c  o  m
}

From source file:org.shredzone.cilla.site.renderer.PaginatorStrategyImpl.java

@Override
public void nextLink(Appendable out, String url) throws IOException {
    if (url != null) {
        out.append("<a class=\"button\"");
        out.append(" href=\"").append(url).append("\">");
        out.append(bundle.getString("paginator.next"));
        out.append("</a>");
    }/*  w  w  w  .j a  v  a2  s.c  o m*/
}