|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.entitymanager.logic.file.FileFactory
public class FileFactory
Factory class for files.
This class may be used to create objects that are instances derived from AbstractFile.
| Field Summary | |
|---|---|
private static FileFactory |
factory
Static factory instance. |
| Constructor Summary | |
|---|---|
private |
FileFactory()
Constructs a file factory. |
| Method Summary | |
|---|---|
AbstractFile |
createFile(java.lang.String name,
AbstractFile parent)
Factory method for files. |
static FileFactory |
getInstance()
Returns the instance of file factory. |
private boolean |
isZipFile(java.io.File file)
Checks whether given file is a zip file. |
private boolean |
isZippedDirectory(java.lang.String name)
Checks whether a zipped file is a zipped directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static FileFactory factory
getInstance()| Constructor Detail |
|---|
private FileFactory()
| Method Detail |
|---|
public static FileFactory getInstance()
public AbstractFile createFile(java.lang.String name,
AbstractFile parent)
Creates AbstractFile objects with name and parent
name - name of fileparent - parent file
AbstractFile objectprivate boolean isZipFile(java.io.File file)
file is a zip file.
file - file to check
private boolean isZippedDirectory(java.lang.String name)
According to zip specification a zipped file is a zipped directory, if its name ends with a slash.
name - name of file within the zip file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||