litesoft
Diff Revisions
302
vs
315
for /trunk/Java/ScarPlus/src/com/esotericsoftware/filesystem/ZipFactory.java
|
@@ -4,10 +4,11 @@ |
4 |
4 |
|
import java.util.*; |
5 |
5 |
|
import java.util.zip.*; |
6 |
6 |
|
|
|
7 |
+ |
import com.esotericsoftware.utils.*; |
|
8 |
+ |
|
7 |
9 |
|
public interface ZipFactory |
8 |
10 |
|
{ |
9 |
|
- |
ZipOutputStream createZOS( String pFilePath, List<FilePath> pPaths ) |
10 |
|
- |
throws IOException; |
|
11 |
+ |
ZipOutputStream createZOS( String pFilePath, List<FilePath> pPaths ); |
11 |
12 |
|
|
12 |
13 |
|
ZipEntry createZE( String pRelativePath ); |
13 |
14 |
|
|
|
@@ -15,9 +16,15 @@ |
15 |
16 |
|
{ |
16 |
17 |
|
@Override |
17 |
18 |
|
public ZipOutputStream createZOS( String pFilePath, List<FilePath> pPaths ) |
18 |
|
- |
throws IOException |
19 |
19 |
|
{ |
20 |
|
- |
return new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( pFilePath ) ) ); |
|
20 |
+ |
try |
|
21 |
+ |
{ |
|
22 |
+ |
return new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( pFilePath ) ) ); |
|
23 |
+ |
} |
|
24 |
+ |
catch ( FileNotFoundException e ) |
|
25 |
+ |
{ |
|
26 |
+ |
throw new WrappedIOException( e ); |
|
27 |
+ |
} |
21 |
28 |
|
} |
22 |
29 |
|
|
23 |
30 |
|
@Override |