All Downloads are FREE. Search and download functionalities are using the official Maven repository.

common.STR Maven / Gradle / Ivy

package com.unbound.common;

import java.nio.charset.StandardCharsets;

public final class STR
{
  public static byte[] utf8(String in)
  {
    return in.getBytes(StandardCharsets.UTF_8);
  }

  public static String utf8(byte[] in)
  {
    return new String(in, StandardCharsets.UTF_8);
  }

  public static boolean nullOrEmpty(String in) { return in==null || in.isEmpty(); }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy