congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StringUtility.convertToHex
Code IndexAdd Tabnine to your IDE (free)

How to use
convertToHex
method
in
com.aoindustries.util.StringUtility

Best Java code snippets using com.aoindustries.util.StringUtility.convertToHex (Showing top 5 results out of 315)

origin: com.aoindustries/aocode-public

/**
 * Converts a long integer to a full 16-character hex code.
 */
public static void convertToHex(long value, Appendable out) throws IOException {
  convertToHex((int)(value >>> 32), out);
  convertToHex((int)value, out);
}
origin: com.semanticcms/semanticcms-core-servlet

public static String encodeHexData(String data) {
  // Note: This is always UTF-8 encoded and does not depend on response encoding
  return StringUtility.convertToHex(data.getBytes(Charsets.UTF_8));
}
origin: com.aoindustries/aocode-public

/**
 * Converts an int to a full 8-character hex code.
 */
public static String convertToHex(int value) {
  StringBuilder SB = new StringBuilder(8);
  try {
    convertToHex(value, SB);
  } catch(IOException e) {
    throw new AssertionError(e);
  }
  return SB.toString();
}
origin: com.aoindustries/aocode-public

public static String convertToHex(byte[] bytes) {
  if(bytes == null) return null;
  int len = bytes.length;
  StringBuilder SB = new StringBuilder(len * 2);
  try {
    convertToHex(bytes, SB);
  } catch(IOException e) {
    throw new AssertionError(e);
  }
  return SB.toString();
}
origin: com.aoindustries/aocode-public

/**
 * Converts a long integer to a full 16-character hex code.
 */
public static String convertToHex(long value) {
  StringBuilder SB = new StringBuilder(16);
  try {
    convertToHex(value, SB);
  } catch(IOException e) {
    throw new AssertionError(e);
  }
  return SB.toString();
}
com.aoindustries.utilStringUtilityconvertToHex

Javadoc

Converts an int to a full 8-character hex code.

Popular methods of StringUtility

  • join
    Joins the string representation of objects on the provided delimiter. The iteration will be performe
  • nullIfEmpty
    Returns null if the string is null or empty.
  • splitString
    Splits a String into a String[].
  • getApproximateSize
    Gets the approximate size (where k=1024) of a file in this format: x byte(s) xx bytes xxx bytes x.x
  • splitStringCommaSpace
    Splits a string into multiple words on either whitespace or commas
  • getDecimalTimeLengthString
  • replace
    Replaces all occurrences of a String with a String.
  • splitLines
    Splits a String into lines on any '\n' characters. Also removes any ending '\r' characters if presen
  • compareToDDMMYYYY0
  • compareToIgnoreCaseCarefulEquals
    Compares two strings in a case insensitive manner. However, if they are considered equals in the cas
  • convertStringDateToTime
  • countOccurrences
    Counts how many times a word appears in a line. Case insensitive matching.
  • convertStringDateToTime,
  • countOccurrences,
  • getDateString,
  • getHex,
  • getHexChar,
  • getTimeLengthString,
  • indexOf,
  • leapYear,
  • wordWrap

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Collectors (java.util.stream)
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)
  • Top 12 Jupyter Notebook Extensions
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