congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StringEscapeUtils
Code IndexAdd Tabnine to your IDE (free)

How to use
StringEscapeUtils
in
org.apache.karaf.util

Best Java code snippets using org.apache.karaf.util.StringEscapeUtils (Showing top 4 results out of 315)

origin: org.apache.karaf.shell/org.apache.karaf.shell.osgi

/**
 * <p>
 * Get the OSGI-INF/bundle.info entry from the bundle and display it.
 * </p>
 *
 * @param bundle the bundle.
 */
protected void printInfo(Bundle bundle) {
  String title = Util.getBundleName(bundle);
  System.out.println("\n" + title);
  System.out.println(Util.getUnderlineString(title));
  URL bundleInfo = bundle.getEntry("OSGI-INF/bundle.info");
  if (bundleInfo != null) {
    try {
      BufferedReader reader = new BufferedReader(new InputStreamReader(bundleInfo.openStream()));
      String line;
      while ((line = reader.readLine()) != null) {
        System.out.println(StringEscapeUtils.unescapeJava(line));
      }
      reader.close();
    } catch (Exception e) {
      // ignore
    }
  }
}
origin: apache/karaf

  out.append("\\u").append(hex(ch));
} else if (ch > 0xff) {
  out.append("\\u0").append(hex(ch));
} else if (ch > 0x7f) {
  out.append("\\u00").append(hex(ch));
} else if (ch < 32) {
  switch (ch) {
    default :
      if (ch > 0xf) {
        out.append("\\u00").append(hex(ch));
      } else {
        out.append("\\u000").append(hex(ch));
origin: apache/karaf

public void parse(String line) {
  String unescaped = StringEscapeUtils.unescapeJava(line);
  Tokenizer tokenizer = new Tokenizer(unescaped);
  String token;
origin: org.apache.karaf.shell/org.apache.karaf.shell.core

public void parse(String line) {
  String unescaped = StringEscapeUtils.unescapeJava(line);
  Tokenizer tokenizer = new Tokenizer(unescaped);
  String token;
org.apache.karaf.utilStringEscapeUtils

Javadoc

Util class to manipulate String, especially around escape/unescape.

Most used methods

  • unescapeJava
  • hex
    Returns an upper case hexadecimal String for the given character.

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Option (scala)
  • Top plugins for Android Studio
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