package com.sklse.irc.dao.impl;
import java.io.*;
import com.sklse.irc.dao.IndexConfigDao;
public class IndexConfigDaoImpl implements IndexConfigDao{
public String updateContent(Integer type, String content){
if(type==1){
FileInputStream f=new FileInputStream("D:/temp/statement/provider.txt");
BufferedInputStream buffer =new BufferedInputStream(f);
byte bufferArray[]=new byte[90];
int n=0;
while((n=buffer.read(bufferArray))!=-1)
{
content =new String(bufferArray,0,n);
}
buffer.close();
f.close();
}
}
return content;
}
代码如下 报错Syntax error on token "return", invalid Type 是return的问题么 怎么改啊类里面怎么return 语法错误。。。也木有处理异常。。。是不是不用开发工具的。return 写到 方法外面了