String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);
throw new ParseException ("Not a valid protocol version: " + buffer.substring(indexFrom, indexTo)); throw new ParseException ("Not a valid protocol version: " + buffer.substring(indexFrom, indexTo)); throw new ParseException ("Invalid protocol version number: " + buffer.substring(indexFrom, indexTo)); throw new ParseException ("Invalid protocol major version number: " + buffer.substring(indexFrom, indexTo)); throw new ParseException( "Invalid protocol minor version number: " + buffer.substring(indexFrom, indexTo));
String s = buffer.substring(beginIndex, endIndex); if (!s.equalsIgnoreCase(getSchemeName())) { throw new MalformedChallengeException("Invalid scheme identifier: " + s);
if (blank < 0) { throw new ParseException("Invalid request line: " + buffer.substring(indexFrom, indexTo)); if (blank < 0) { throw new ParseException("Invalid request line: " + buffer.substring(indexFrom, indexTo)); if (!cursor.atEnd()) { throw new ParseException("Invalid request line: " + buffer.substring(indexFrom, indexTo)); } catch (IndexOutOfBoundsException e) { throw new ParseException("Invalid request line: " + buffer.substring(indexFrom, indexTo));
@Override protected boolean reject(CharArrayBuffer line, int count) { if (line.length() > 4 && "ICY ".equals(line.substring(0, 4))) { throw new FriendlyException("ICY protocol is not supported.", COMMON, null); } else if (count > 10) { throw new FriendlyException("The server is giving us garbage.", SUSPICIOUS, null); } return false; } }
i2--; value = buffer.substring(i1, i2); if (terminated) { pos++;
@Override public boolean hasProtocolVersion(CharArrayBuffer buffer, ParserCursor cursor) { int index = cursor.getPos(); int bound = cursor.getUpperBound(); if (bound >= index + 4 && "ICY ".equals(buffer.substring(index, index + 4))) { return true; } return super.hasProtocolVersion(buffer, cursor); } }
@Override public ProtocolVersion parseProtocolVersion(CharArrayBuffer buffer, ParserCursor cursor) { int index = cursor.getPos(); int bound = cursor.getUpperBound(); if (bound >= index + 4 && "ICY ".equals(buffer.substring(index, index + 4))) { cursor.updatePos(index + 4); return ICY_PROTOCOL; } return super.parseProtocolVersion(buffer, cursor); }
String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);
String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);
String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);
final String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);
final String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ROOT), header);
String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);
final String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ROOT), header);
final String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ROOT), header);
final String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);
final String s = buffer.substring(beginIndex, endIndex); map.put(s.toLowerCase(Locale.ENGLISH), header);