Tabnine Logo
TopicUtil.scanForLevelPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
scanForLevelPosition
method
in
com.ociweb.pronghorn.util.TopicUtil

Best Java code snippets using com.ociweb.pronghorn.util.TopicUtil.scanForLevelPosition (Showing top 9 results out of 315)

origin: com.ociweb/pronghorn-pipes

public static CharSequence extractCharSequence(CharSequence topic, int levelIndex) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  int start = idx;
  int length = 0;
  while (idx<limit && topic.charAt(idx)!='/') {
    length++;
  }
  return topic.subSequence(start, start+length);
}

origin: com.ociweb/PronghornPipes

public static CharSequence extractCharSequence(CharSequence topic, int levelIndex) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  int start = idx;
  int length = 0;
  while (idx<limit && topic.charAt(idx)!='/') {
    length++;
  }
  return topic.subSequence(start, start+length);
}
 
origin: oci-pronghorn/Pronghorn

public static CharSequence extractCharSequence(CharSequence topic, int levelIndex) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  int start = idx;
  int length = 0;
  while (idx<limit && topic.charAt(idx)!='/') {
    length++;
  }
  return topic.subSequence(start, start+length);
}

origin: com.ociweb/PronghornPipes

public static long extractLong(CharSequence topic, int levelIndex) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  while (idx<limit) {
    char c = topic.charAt(idx++);			
    if (c>='0' && c<='9') {							
      result = ((result*10) + (c-'0'));				
    } else {
      //not numeric found, probably /
      break;
    }
    
  }
  return result;
}
 
origin: oci-pronghorn/Pronghorn

public static long extractLong(CharSequence topic, int levelIndex) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  while (idx<limit) {
    char c = topic.charAt(idx++);			
    if (c>='0' && c<='9') {							
      result = ((result*10) + (c-'0'));				
    } else {
      //not numeric found, probably /
      break;
    }
    
  }
  return result;
}

origin: com.ociweb/pronghorn-pipes

public static long extractLong(CharSequence topic, int levelIndex) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  while (idx<limit) {
    char c = topic.charAt(idx++);			
    if (c>='0' && c<='9') {							
      result = ((result*10) + (c-'0'));				
    } else {
      //not numeric found, probably /
      break;
    }
    
  }
  return result;
}

origin: com.ociweb/pronghorn-pipes

public static void extractCharSequence(CharSequence topic, int levelIndex, Appendable target) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  int start = idx;
  int length = 0;
  while (idx<limit && topic.charAt(idx)!='/') {
    length++;
  }
  
  try {
    target.append(topic, start, start+length);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}    

origin: oci-pronghorn/Pronghorn

public static void extractCharSequence(CharSequence topic, int levelIndex, Appendable target) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  int start = idx;
  int length = 0;
  while (idx<limit && topic.charAt(idx)!='/') {
    length++;
  }
  
  try {
    target.append(topic, start, start+length);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}    

origin: com.ociweb/PronghornPipes

public static void extractCharSequence(CharSequence topic, int levelIndex, Appendable target) {
  
  long result = 0;
  
  int limit = topic.length();
  int idx = scanForLevelPosition(topic, levelIndex, 0, limit);
  
  int start = idx;
  int length = 0;
  while (idx<limit && topic.charAt(idx)!='/') {
    length++;
  }
  
  try {
    target.append(topic, start, start+length);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}    
 
com.ociweb.pronghorn.utilTopicUtilscanForLevelPosition

Popular methods of TopicUtil

    Popular in Java

    • Creating JSON documents from java classes using gson
    • scheduleAtFixedRate (ScheduledExecutorService)
    • getSharedPreferences (Context)
    • getContentResolver (Context)
    • InetAddress (java.net)
      An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
    • URLConnection (java.net)
      A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
    • URLEncoder (java.net)
      This class is used to encode a string using the format required by application/x-www-form-urlencoded
    • Date (java.util)
      A specific moment in time, with millisecond precision. Values typically come from System#currentTime
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • Top plugins for WebStorm
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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