code: public String[] split(CharSequence text, int limit)
      {
          try
          {
              InputReader reader = Input.getInstance(text);
              List<String> list = split(reader, limit);
              return list.toArray(new String[list.size()]);
          }
          catch (IOException ex)
          {
              throw new IllegalArgumentException("can't happen", ex);
          }
      }
docs: Splits the input
  @param text
  @param limit See java.util.Pattern.split
  @return