获得上传的文件
@param name 参数名
@return 上传的文件
186367
public static UploadFile getFileParam(String name){
		MultipartFormData multipart = getMultipart();
		if(null != multipart){
			return multipart.getFile(name);
		}
		return null;
	}
193514
public GeoPackage getOrOpen(String name, File file) {
		return getOrOpen(name, file, true);
	}
685985
@InterfaceAudience.Public
    public Attachment getAttachment(String name) {
        Map<String, Object> attachmentsMetadata = getAttachmentMetadata();
        if (attachmentsMetadata == null) {
            return null;
        }
        return toAttachment(name, attachmentsMetadata.get(name));
    }
189976
public String getString(String name) {

		Object value = get(name);
		if (value instanceof String ||
			value instanceof Boolean ||
			value instanceof Integer) {
			return value.toString();
		}

		if (value instanceof String[]) {
			String[] list = getStrings(name);
			return StringUtils.join(list, ",");
		}

		return get(name).toString();
	}
512795
public function upload($name)
        {            
            if(empty($_FILES[$name]['name'])) //上传文件为空时
            {
               $this->message($this->errors['empty']);
                
                return false;
            }
            
            $this->files = $_FILES[$name];
            
            if(!file_exists($this->savePath)) //目录不存在
            {
                $this->message($this->errors['not_exist']);
                
                return false;
            }

            if(!is_writable($this->savePath)) //目录不可写
            {
                $this->message($this->errors['unwritable']);
                
                return false;
            }

            $this->fileExt  = $this->getFileExt($this->files["name"]); //取得扩展名
            
            $this->setSeveName();
            
            return $this->moveFile();
        }
389991
public static Map<String, Format> get(String name)
    {
        return instance().methods.get(name);
    }
958301
static String getFile( String name )
        throws FileNotFoundException, IOException
    {
        StringBuilder sb = new StringBuilder();
        try ( BufferedReader bin = new BufferedReader( new FileReader( name ) ) ) {
            String line;
            while ( (line=bin.readLine()) != null )
                sb.append( line ).append( "\n" );
        }
        return sb.toString();
    }
265950
protected static Properties loadConfig(String name) {
    try {
      URL url = new URL(name);
      return loadConfig(url);
    } catch (Exception ex) {
      return loadConfig(new File(name));
    }
  }
882275
public HttpRequest form(String name, File file) {
		return form(name, file, file.getName());
	}
37513
public final synchronized L[] get(String name) {
        return (this.map != null)
                ? this.map.get(name)
                : null;
    }
96939
public static byte[] externalize(Name name) {
        return externalize(name.getByteArray(), name.getByteOffset(), name.getByteLength());
    }
1119531
public String getHeader( final String name ) {
        List<String> headerVals = getRequestInfo().getHeader(name);
        if( headerVals != null && !headerVals.isEmpty() ) {
            return headerVals.get(0);
        }
        return null;
    }
869796
public final InputStream getResourceAsStream(final String name) {
		try {
			return this.getResource(name).openStream();
		} catch (final Exception ioe) {
			return null;
		}
	}
131152
public function getUploadedFile($name) {
        if(!isset($_FILES[$name])) return false;

        if(is_array($_FILES[$name]['name'])) {
            $result = array();
            foreach($_FILES[$name]['name'] as $key => $name) {
                $file = new UploadedFile($name, $_FILES[$name]['tmp_name'][$key], $_FILES[$name]['size'][$key], $_FILES[$name]['type'][$key], $_FILES[$name]['error'][$key] );
                $result[] = $file;
            }
            return $result;
        }else {
            $file = new UploadedFile($_FILES[$name]['name'], $_FILES[$name]['tmp_name'], $_FILES[$name]['size'], $_FILES[$name]['type'], $_FILES[$name]['error']);
            return $file;
        }
    }
158330
public InputStream openConfig(String name) {
        InputStream is = null;
        String configPath = configHome + "/" + name;

        try {
            return FileUtils.readResource(configPath);
        } catch (Throwable e) {
            LOG.debug("Config " + name + " (" + configPath + ") not found", e);
        }

        return is;
    }
701095
public static FileHandlerResult fromName(final String name) {
        if (name == null) {
            return null;
        }
        for (final FileHandlerResult result : INSTANCES) {
            if (result.name.equals(name)) {
                return result;
            }
        }
        throw new IllegalArgumentException("Unknown name: " + name);
    }
1296779
function (name) {
    if (!grunt.file.exists(name)) { return "{}"; }

    var raw = grunt.file.read(name);
    return JSON.parse(raw.replace(/\/\/.*\n/g, ""));
  }