code: private String createString(String f)
      {
          StringBuilder sb = new StringBuilder();
          switch (resType)
          {
              case CUresourcetype.CU_RESOURCE_TYPE_ARRAY:
                  sb.append("hArray="+array_hArray+f);
                  break;
  
              case  CUresourcetype.CU_RESOURCE_TYPE_MIPMAPPED_ARRAY:
                  sb.append("hMipmappedArray="+mipmap_hMipmappedArray+f);
                  break;
  
              case  CUresourcetype.CU_RESOURCE_TYPE_LINEAR:
                  sb.append("devPtr="+linear_devPtr+f);
                  sb.append("format="+CUarray_format.stringFor(linear_format)+f);
                  sb.append("numChannels="+linear_numChannels+f);
                  sb.append("sizeInBytes="+linear_sizeInBytes+f);
                  break;
  
              case  CUresourcetype.CU_RESOURCE_TYPE_PITCH2D:
                  sb.append("devPtr="+pitch2D_devPtr+f);
                  sb.append("format="+CUarray_format.stringFor(pitch2D_format)+f);
                  sb.append("numChannels="+pitch2D_numChannels+f);
                  sb.append("width="+pitch2D_width+f);
                  sb.append("height="+pitch2D_height+f);
                  sb.append("pitchInBytes="+pitch2D_pitchInBytes+f);
                  break;
  
              default:
                  sb.append("INVALID");
          }
          return sb.toString();
      }
docs: Creates and returns a string representation of this object,
  using the given separator for the fields
  
  @param f Separator
  @return A String representation of this object