code: public static void expectSLASH(final Buffer buffer) throws SipParseException {
          try {
              final int count = consumeSLASH(buffer);
              if (count == 0) {
                  throw new SipParseException(buffer.getReaderIndex(), "Expected SLASH");
              }
          } catch (final IndexOutOfBoundsException e) {
              throw new SipParseException(buffer.getReaderIndex(), "Expected SLASH but nothing more to read", e);
  
          } catch (final IOException e) {
              throw new SipParseException(buffer.getReaderIndex(), "Expected SLASH but problem reading from stream", e);
          }
      }
docs: Convenience method for expecting (and consuming) a SLASH, which is
  defined as:
  
  
  See RFC3261 section 25.1 Basic Rules
  
  @param buffer
  @throws SipParseException