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

    • Start an intent from android
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • setContentView (Activity)
    • getSystemService (Context)
    • PrintStream (java.io)
      Fake signature of an existing Java class.
    • Timestamp (java.sql)
      A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • JFrame (javax.swing)
    • Option (scala)
    • Top plugins for WebStorm
    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