Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.esotericsoftware.filesystem;

import java.io.*;
import java.util.*;
import java.util.zip.*;

import com.esotericsoftware.utils.*;

public interface ZipFactory
{
    ZipOutputStream createZOS( String pFilePath, List<FilePath> pPaths );

    ZipEntry createZE( String pRelativePath );

    public ZipFactory FOR_ZIPS = new ZipFactory()
    {
        @Override
        public ZipOutputStream createZOS( String pFilePath, List<FilePath> pPaths )
        {
            try
            {
                return new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( pFilePath ) ) );
            }
            catch ( FileNotFoundException e )
            {
                throw new WrappedIOException( e );
            }
        }

        @Override
        public ZipEntry createZE( String pRelativePath )
        {
            return new ZipEntry( pRelativePath );
        }
    };
}

Commits for litesoft/trunk/Java/ScarPlus/src/com/esotericsoftware/filesystem/ZipFactory.java

Diff revisions: vs.
Revision Author Commited Message
315 Diff Diff GeorgeS picture GeorgeS Sun 17 Jul, 2011 15:48:36 +0000
302 GeorgeS picture GeorgeS Fri 08 Jul, 2011 14:08:10 +0000