litesoft
Diff Revisions
317
vs
319
for /trunk/Java/ScarPlus/src/com/esotericsoftware/utils/FileUtil.java
|
@@ -183,8 +183,19 @@ |
183 |
183 |
|
return stringBuffer.toString(); |
184 |
184 |
|
} |
185 |
185 |
|
|
|
186 |
+ |
public static BufferedOutputStream createBufferedFileOutputStream( String filePath ) |
|
187 |
+ |
{ |
|
188 |
+ |
return createBufferedFileOutputStream( new File( filePath ) ); |
|
189 |
+ |
} |
|
190 |
+ |
|
|
191 |
+ |
public static BufferedOutputStream createBufferedFileOutputStream( File out ) |
|
192 |
+ |
{ |
|
193 |
+ |
return new BufferedOutputStream( createFileOutputStream( out ) ); |
|
194 |
+ |
} |
|
195 |
+ |
|
186 |
196 |
|
public static FileOutputStream createFileOutputStream( File out ) |
187 |
197 |
|
{ |
|
198 |
+ |
out.getParentFile().mkdirs(); |
188 |
199 |
|
try |
189 |
200 |
|
{ |
190 |
201 |
|
return new FileOutputStream( out ); |