Codota Logo
com.wizzardo.tools.misc
Code IndexAdd Codota to your IDE (free)

How to use com.wizzardo.tools.misc

Best Java code snippets using com.wizzardo.tools.misc (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.wizzardo.tools/tools-misc

public ExceptionDrivenStringBuilder append(int i) {
  try {
    length = NumberToChars.toChars(i, buffer, length);
  } catch (ArrayIndexOutOfBoundsException ex) {
    ensureCapacity(length + 11);
    return append(i);
  } catch (IndexOutOfBoundsException ex) {
    ensureCapacity(length + 11);
    return append(i);
  }
  return this;
}
origin: com.wizzardo.tools/tools-misc

public ExceptionDrivenStringBuilder append(Date date) {
  try {
    length = DateIso8601.formatToChars(date, buffer, length);
  } catch (ArrayIndexOutOfBoundsException ex) {
    ensureCapacity(length + 28);
    return append(date);
  } catch (IndexOutOfBoundsException ex) {
    ensureCapacity(length + 28);
    return append(date);
  }
  return this;
}
origin: wizzardo/tools

@Override
public void append(String s) {
  try {
    out.write(s);
  } catch (IOException e) {
    throw Unchecked.rethrow(e);
  }
}
origin: com.wizzardo.tools/tools-misc

public static byte[] encode(char[] chars, int off, int length) {
  byte[] bytes = new byte[count(chars, off, length)];
  encode(chars, off, length, bytes);
  return bytes;
}
origin: wizzardo/tools

@Override
public CharTreeNode<V> append(char b) {
  increase(b + 1);
  if (nodes[b] == null)
    nodes[b] = new SingleCharTreeNode<V>();
  return this;
}
origin: wizzardo/tools

@Override
public void append(int i) {
  int l = NumberToChars.toChars(i, buffer, 0);
  append(buffer, 0, l);
}
origin: wizzardo/tools

@Override
public void append(Object ob) {
  if (ob == null)
    append(CHARS_NULL, 0, 4);
  else
    super.append(ob);
}
origin: com.wizzardo.tools/tools-misc

/**
 * @return byte array with UTF-8 encoded string
 **/
public byte[] toBytes() {
  if (utf8Buffer == null)
    utf8Buffer = new UTF8();
  return utf8Buffer.toBytes(buffer, 0, length);
}
origin: wizzardo/tools

@Override
public void append(Date d) {
  int l = DateIso8601.formatToChars(d, buffer, 0);
  append(buffer, 0, l);
}
origin: com.wizzardo.tools/tools-misc

public V findEnds(char[] chars, int offset, int length) {
  CharTreeNode<V> node = root;
  int l = chars.length - 1;
  for (int i = offset; i < offset + length && node != null && node.value == null; i++) {
    node = node.next(chars[l - i]);
  }
  return node == null ? null : node.value;
}
origin: com.wizzardo.tools/tools-misc

public static int stringSizeOfWithMinus(int i) {
  if (i < 0) {
    if (i == Integer.MIN_VALUE)
      return 11;
    return stringSizeOf(-i) + 1;
  }
  return stringSizeOf(i);
}
origin: wizzardo/tools

@Override
public void append(int i) {
  try {
    out.write(i);
  } catch (IOException e) {
    throw Unchecked.rethrow(e);
  }
}
origin: com.wizzardo.tools/tools-misc

public ExceptionDrivenStringBuilder append(long i) {
  try {
    length = NumberToChars.toChars(i, buffer, length);
  } catch (ArrayIndexOutOfBoundsException ex) {
    ensureCapacity(length + 20);
    return append(i);
  } catch (IndexOutOfBoundsException ex) {
    ensureCapacity(length + 20);
    return append(i);
  }
  return this;
}
origin: wizzardo/tools

public ExceptionDrivenStringBuilder append(Date date) {
  try {
    length = DateIso8601.formatToChars(date, buffer, length);
  } catch (ArrayIndexOutOfBoundsException ex) {
    ensureCapacity(length + 28);
    return append(date);
  } catch (IndexOutOfBoundsException ex) {
    ensureCapacity(length + 28);
    return append(date);
  }
  return this;
}
origin: com.wizzardo.tools/tools-misc

@Override
public CharTreeNode<V> append(char b) {
  increase(b + 1);
  if (nodes[b] == null)
    nodes[b] = new SingleCharTreeNode<V>();
  return this;
}
origin: wizzardo/tools

@Override
public void append(long s) {
  int l = NumberToChars.toChars(s, buffer, 0);
  append(buffer, 0, l);
}
origin: wizzardo/tools

@Override
public void append(long l) {
  try {
    out.write(l);
  } catch (IOException e) {
    throw Unchecked.rethrow(e);
  }
}
origin: wizzardo/tools

public ExceptionDrivenStringBuilder append(long i) {
  try {
    length = NumberToChars.toChars(i, buffer, length);
  } catch (ArrayIndexOutOfBoundsException ex) {
    ensureCapacity(length + 20);
    return append(i);
  } catch (IndexOutOfBoundsException ex) {
    ensureCapacity(length + 20);
    return append(i);
  }
  return this;
}
origin: wizzardo/tools

  @Override
  public void append(boolean b) {
    try {
      out.write(b);
    } catch (IOException e) {
      throw Unchecked.rethrow(e);
    }
  }
}
origin: wizzardo/tools

public ExceptionDrivenStringBuilder append(int i) {
  try {
    length = NumberToChars.toChars(i, buffer, length);
  } catch (ArrayIndexOutOfBoundsException ex) {
    ensureCapacity(length + 11);
    return append(i);
  } catch (IndexOutOfBoundsException ex) {
    ensureCapacity(length + 11);
    return append(i);
  }
  return this;
}
com.wizzardo.tools.misc

Most used classes

  • Unchecked
  • Pair
  • ExceptionDrivenStringBuilder
  • CharTree
  • DateIso8601
  • Pool,
  • Appender,
  • CharTree$CharTreeNode,
  • NumberToChars,
  • SoftThreadLocal,
  • TextTools,
  • UTF8$DecodeContext,
  • UTF8$DecodeOffsets,
  • UTF8,
  • EventBus,
  • CharTree$ArrayCharTreeNode,
  • CharTree$SingleCharTreeNode,
  • Lazy$Holder,
  • Lazy$HolderWithSupplier
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now