Example #1
0
  /** Creates a new ResponseAdapter. */
  public static ToCharResponseAdapter create(HttpServletResponse response) {
    ToCharResponseAdapter resAdapt = _freeList.allocate();

    if (resAdapt == null) resAdapt = new ToCharResponseAdapter();

    resAdapt.init(response);

    return resAdapt;
  }
Example #2
0
  public static void free(ToCharResponseAdapter resAdapt) {
    resAdapt.free();

    _freeList.free(resAdapt);
  }