Code example for ProtocolVersion

Methods: forVersion

0
            client.close();
        } 
    } 
 
    private class IcyLineParser extends BasicLineParser {
        private static final String ICY_PROTOCOL_NAME = "ICY";
        private IcyLineParser() { 
            super(); 
        } 
 
        @Override 
        public boolean hasProtocolVersion(CharArrayBuffer buffer,
                ParserCursor cursor) {
            boolean superFound = super.hasProtocolVersion(buffer, cursor);
            if (superFound) {
                return true; 
            } 
            int index = cursor.getPos();
 
            final int protolength = ICY_PROTOCOL_NAME.length();