是不行的,SmartUpload包下的File类是从Object继承下来的
其实SmartUpload的工作原理是这样的
首先把客户端的 file类型的表单的byte流以byte[]的形式保存在SmartUpload的实例当中
SmartUpload下的File的saveAs(String filename)方法就是生成一个FileOutputStream类
源代码如下:
public void saveAs(String destFilePathName, int optionSaveAs)
        throws SmartUploadException, IOException
    {
        String path = new String();
        path = m_parent.getPhysicalPath(destFilePathName, optionSaveAs);
        if(path == null)
            throw new IllegalArgumentException("There is no specified destination file (1140).");
        try
        {
            java.io.File file = new java.io.File(path);//这就是要保存的文件路径
            FileOutputStream fileOut = new FileOutputStream(file);//生成输出流
            fileOut.write(m_parent.m_binArray, m_startData, m_size);//把byte[]流写入到文件当中
            fileOut.close();
        }
        catch(IOException e)
        {
            throw new SmartUploadException("File can't be saved (1120).");
        }
    }
希望对你有帮助!祝你好运!