de.schlichtherle.io
Interface FileFactory

All Known Subinterfaces:
ArchiveDetector
All Known Implementing Classes:
AbstractArchiveDetector, DefaultArchiveDetector

public interface FileFactory

This interface is not intended for public use! It's only used to hide the existence of ArchiveDetectors from some methods in the File class.

A factory interface which creates Files, FileInputStreams and FileOutputStreams. You should not implement this interface directly - implement ArchiveDetector instead.

Implementations must be virtually immutable and thread safe!

Since:
TrueZIP 6.0
Version:
TrueZIP 6.7
Author:
Christian Schlichtherle
See Also:
ArchiveDetector

Method Summary
 File createFile(File blueprint)
           
 File createFile(File delegate, File innerArchive)
           
 File createFile(File blueprint, File delegate, File enclArchive)
           
 File createFile(File parent, String child)
           
 File createFile(String path)
           
 File createFile(String parent, String child)
           
 File createFile(URI uri)
           
 FileInputStream createFileInputStream(File file)
           
 FileOutputStream createFileOutputStream(File file, boolean append)
           
 

Method Detail

createFile

File createFile(File blueprint)

createFile

File createFile(File delegate,
                File innerArchive)

createFile

File createFile(File blueprint,
                File delegate,
                File enclArchive)

createFile

File createFile(String path)

createFile

File createFile(String parent,
                String child)

createFile

File createFile(File parent,
                String child)

createFile

File createFile(URI uri)

createFileInputStream

FileInputStream createFileInputStream(File file)
                                      throws FileNotFoundException
Throws:
FileNotFoundException

createFileOutputStream

FileOutputStream createFileOutputStream(File file,
                                        boolean append)
                                        throws FileNotFoundException
Throws:
FileNotFoundException