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
package com.esotericsoftware.filesystem;

import java.io.*;
import org.litesoft.core.typeutils.Objects;
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 )
        {
            return new ZipOutputStream( FileUtil.createBufferedFileOutputStream( pFilePath ) );
        }

        @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
939 Diff Diff GeorgeS picture GeorgeS Mon 02 Jun, 2014 21:30:31 +0000

Extracting commonfoundation

319 Diff Diff GeorgeS picture GeorgeS Sat 23 Jul, 2011 00:38:50 +0000
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