Tabnine Logo
ByteChunk.startsWithIgnoreCase
Code IndexAdd Tabnine to your IDE (free)

How to use
startsWithIgnoreCase
method
in
org.glassfish.grizzly.http.util.ByteChunk

Best Java code snippets using org.glassfish.grizzly.http.util.ByteChunk.startsWithIgnoreCase (Showing top 20 results out of 315)

origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: org.glassfish.grizzly/grizzly-http

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: javaee/grizzly

/**
 * Returns true if the message bytes starts with the specified string.
 * @param s the string
 * @param pos The start position
 */
public boolean startsWithIgnoreCase(String s, int pos) {
  switch (type) {
    case T_STR:
      if( strValue==null ) return false;
      if( strValue.length() < pos + s.length() ) return false;
      for( int i=0; i<s.length(); i++ ) {
        if( Ascii.toLower( s.charAt( i ) ) !=
            Ascii.toLower( strValue.charAt( pos + i ))) {
          return false;
        }
      }
      return true;
    case T_CHARS:
      return charC.startsWithIgnoreCase( s, pos );
    case T_BYTES:
      return byteC.startsWithIgnoreCase( s, pos );
    default:
      return false;
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: javaee/grizzly

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: javaee/grizzly

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: org.glassfish.grizzly/grizzly-http

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: javaee/grizzly

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: javaee/grizzly

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: javaee/grizzly

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: javaee/grizzly

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: javaee/grizzly

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
origin: org.glassfish.grizzly/grizzly-http-server-core

switch (type) {
  case Bytes:
    return byteChunk.startsWithIgnoreCase(s, pos);
  case Buffer:
    return bufferChunk.startsWithIgnoreCase(s, pos);
org.glassfish.grizzly.http.utilByteChunkstartsWithIgnoreCase

Javadoc

Returns true if the message bytes starts with the specified string.

Popular methods of ByteChunk

  • getBuffer
    Returns the message bytes.
  • getEnd
  • getStart
    Returns the start offset of the bytes. For output this is the end of the buffer.
  • <init>
  • append
    Add data to the buffer
  • getBytes
    Returns the message bytes.
  • getLength
    Returns the length of the bytes. XXX need to clean this up
  • indexOf
  • setBytes
    Sets the message bytes to the specified sub-array of bytes.
  • setEnd
  • toString
  • allocate
  • toString,
  • allocate,
  • canGrow,
  • delete,
  • equals,
  • equalsIgnoreCase,
  • equalsIgnoreCaseLowerCase,
  • flushBuffer,
  • getCharset,
  • getInt

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now