Commit 95c4d28e by guojuxing

pmd

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

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

* @exception * @exception ClassNotFoundException

*/ 
*/
ScreenBack screenBack(String compute, String value, String key, Integer enterpriseId) throws 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