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

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

Best Java code snippets using com.ociweb.pronghorn.util.TopicUtil (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.utilTopicUtil

Most used methods

  • scanForLevelPosition

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JCheckBox (javax.swing)
  • 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