|
|
@ -194,11 +194,12 @@ public class FileFILE implements FILE { |
|
|
|
* @return 输出流 |
|
|
|
* @return 输出流 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public OutputStream asOutputStream() { |
|
|
|
public OutputStream asOutputStream() { |
|
|
|
if (file == null || !file.exists()) { |
|
|
|
if (file == null) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
OutputStream out; |
|
|
|
OutputStream out; |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
StableUtils.makesureFileExist(file); |
|
|
|
out = new FileOutputStream(file); |
|
|
|
out = new FileOutputStream(file); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
throw SessionLocalManager.createLogPackedException(e); |
|
|
|
throw SessionLocalManager.createLogPackedException(e); |
|
|
|