Commit 95c4d28e by guojuxing

pmd

parent dfb7d21d
......@@ -146,10 +146,11 @@ public class UploadImgController {
*/
private static void inputStreamToFile(InputStream ins, File file) {
try {
int bufferSize = 8192;
OutputStream os = new FileOutputStream(file);
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = ins.read(buffer, 0, 8192)) != -1) {
byte[] buffer = new byte[bufferSize];
while ((bytesRead = ins.read(buffer, 0, bufferSize)) != -1) {
os.write(buffer, 0, bytesRead);
}
os.close();
......
......@@ -19,7 +19,7 @@ public interface ScreenBackStrategy {
* @param key
* @param enterpriseId

* @return com.gic.plug.web.vo.ScreenBack

* @exception
* @exception ClassNotFoundException

*/
ScreenBack screenBack(String compute, String value, String key, Integer enterpriseId) throws ClassNotFoundException;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment