@Test public void testPopWithAppendable() { CodeReader reader = new CodeReader("package org.sonar;"); StringBuilder sw = new StringBuilder(); reader.pop(sw); assertEquals("p", sw.toString()); reader.pop(sw); assertEquals("pa", sw.toString()); }
public final void pop(Appendable appendable) { try { appendable.append((char) pop()); } catch (IOException e) { throw new ChannelException(e.getMessage(), e); } }
CodeReader extends CodeBuffer { public final void pop(Appendable appendable) { try { appendable.append((char) pop()); } catch (IOException e) { throw new ChannelException(e.getMessage(), e); } } }
CodeReader extends CodeBuffer { public final void pop(Appendable appendable) { try { appendable.append((char) pop()); } catch (IOException e) { throw new ChannelException(e.getMessage(), e); } } CodeReader(Reader code);  CodeReader(String code);  CodeReader(Reader code, CodeReaderConfiguration configuration);  CodeReader(String code, CodeReaderConfiguration configuration); }
CodeReader extends CodeBuffer { public final void pop(Appendable appendable) { try { appendable.append((char) pop()); } catch (IOException e) { throw new ChannelException(e.getMessage(), e); } } CodeReader(Reader code);  CodeReader(String code);  CodeReader(Reader code, CodeReaderConfiguration configuration);  CodeReader(String code, CodeReaderConfiguration configuration); final void pop(Appendable appendable); final char[] peek(int length); final void peekTo(EndMatcher matcher, Appendable appendable); final int popTo(Matcher matcher, Appendable appendable); final int popTo(Matcher matcher, Matcher afterMatcher, Appendable appendable); final Cursor getPreviousCursor(); }
CodeReader extends CodeBuffer { public final void pop(Appendable appendable) { try { appendable.append((char) pop()); } catch (IOException e) { throw new ChannelException(e.getMessage(), e); } } CodeReader(Reader code);  CodeReader(String code);  CodeReader(Reader code, CodeReaderConfiguration configuration);  CodeReader(String code, CodeReaderConfiguration configuration); final void pop(Appendable appendable); final char[] peek(int length); final void peekTo(EndMatcher matcher, Appendable appendable); final int popTo(Matcher matcher, Appendable appendable); final int popTo(Matcher matcher, Matcher afterMatcher, Appendable appendable); final Cursor getPreviousCursor();  }