public class FileStructureFactory extends Object
Modifier | Constructor and Description |
---|---|
protected |
FileStructureFactory(File baseFolder) |
Modifier and Type | Method and Description |
---|---|
static Map<String,FileInfo> |
asMapByPath(List<FileInfo> list) |
static Map<String,FileInfo> |
cloneMap(Map<String,FileInfo> map) |
List<FileInfo> |
fileTreeToList(boolean useKnownFiles,
boolean includeDeleted) |
Map<String,FileInfo> |
fileTreeToMap(boolean useKnownFiles,
boolean includeDeleted) |
String |
fileTreeToProperties()
Deprecated.
|
static FileStructureFactory |
getInstance(File baseFolder) |
boolean |
isMarkedAsDeleted(File file) |
static void |
main(String[] args) |
void |
markAsDeleted(File file) |
static Map<String,FileInfo> |
readFromStream(InputStream in) |
static void |
writeToStream(Collection<FileInfo> list,
OutputStream outStream) |
protected FileStructureFactory(File baseFolder)
public static FileStructureFactory getInstance(File baseFolder)
public final void markAsDeleted(File file) throws IOException
IOException
public final boolean isMarkedAsDeleted(File file) throws IOException
IOException
@Deprecated public final String fileTreeToProperties() throws IOException
IOException
public Map<String,FileInfo> fileTreeToMap(boolean useKnownFiles, boolean includeDeleted) throws IOException
IOException
public List<FileInfo> fileTreeToList(boolean useKnownFiles, boolean includeDeleted) throws IOException
IOException
public static Map<String,FileInfo> readFromStream(InputStream in) throws IOException
IOException
public static void writeToStream(Collection<FileInfo> list, OutputStream outStream) throws IOException
IOException
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.