@Test(expected = DecodingException.class) public void nextNonSpaceCharShouldThrowExceptionWhenNotFound() throws Exception { inputStream = new ByteArrayInputStream((" ").getBytes(StandardCharsets.US_ASCII)); lineReader = new ImapRequestStreamLineReader(inputStream, outputStream); lineReader.nextNonSpaceChar(); }
public char nextNonSpaceChar() throws DecodingException { char next = nextChar(); while (next == ' ') { consume(); next = nextChar(); } return next; }
ImapRequestLineReader { public char nextNonSpaceChar() throws DecodingException { char next = nextChar(); while (next == ' ') { consume(); next = nextChar(); } return next; } }
ImapRequestLineReader { public char nextNonSpaceChar() throws DecodingException { char next = nextChar(); while (next == ' ') { consume(); next = nextChar(); } return next; }  }
ImapRequestLineReader { public char nextNonSpaceChar() throws DecodingException { char next = nextChar(); while (next == ' ') { consume(); next = nextChar(); } return next; }  static int cap(char next); char nextWordChar(); abstract char nextChar(); void eol(); char consume(); abstract InputStream read(int size, boolean extraCRLF); void consumeLine(); String atom(); Tag tag(); String astring(); String astring(Charset charset); String nstring(); String mailbox(); String mailboxUTF7(); DayMonthYear date(); LocalDateTime dateTime(); String consumeWord(CharacterValidator validator); String consumeLiteral(Charset charset); ImmutablePair<Integer, InputStream> consumeLiteral(boolean extraCRLF); void consumeChar(char expected); String consumeQuoted(); Flags flagList(); Flags flag(); long number(); long number(boolean stopOnParen); long nzNumber(); static boolean isCHAR(char chr); static boolean isListWildcard(char chr); static boolean isQuotedSpecial(char chr); IdRange[] parseIdRange(); IdRange[] parseIdRange(ImapSession session); UidRange[] parseUidRange(); char nextNonSpaceChar(); }
ImapRequestLineReader { public char nextNonSpaceChar() throws DecodingException { char next = nextChar(); while (next == ' ') { consume(); next = nextChar(); } return next; }  static int cap(char next); char nextWordChar(); abstract char nextChar(); void eol(); char consume(); abstract InputStream read(int size, boolean extraCRLF); void consumeLine(); String atom(); Tag tag(); String astring(); String astring(Charset charset); String nstring(); String mailbox(); String mailboxUTF7(); DayMonthYear date(); LocalDateTime dateTime(); String consumeWord(CharacterValidator validator); String consumeLiteral(Charset charset); ImmutablePair<Integer, InputStream> consumeLiteral(boolean extraCRLF); void consumeChar(char expected); String consumeQuoted(); Flags flagList(); Flags flag(); long number(); long number(boolean stopOnParen); long nzNumber(); static boolean isCHAR(char chr); static boolean isListWildcard(char chr); static boolean isQuotedSpecial(char chr); IdRange[] parseIdRange(); IdRange[] parseIdRange(ImapSession session); UidRange[] parseUidRange(); char nextNonSpaceChar();  }