org.nuiton.wikitty.publication
Class WikittyFileUtil

java.lang.Object
  extended by org.nuiton.wikitty.publication.WikittyFileUtil

public class WikittyFileUtil
extends Object

Class that containt utils method when handle wikitty store as file.

Author:
mfortun

Field Summary
static String WIKITTY_FILE_META_PROPERTIES_FILE
          The file name of the meta property file
static String WIKITTY_ID_PROPERTIES_FILE
          The file Name of the id property file
static String WIKITTY_LABEL_SEPARATOR
           
 
Constructor Summary
WikittyFileUtil()
           
 
Method Summary
static boolean createFilesFromLabelPath(File homeFile, String label)
          Creates all the file system require from a label path in the working directory
static String labelToPath(String label)
          Construct correctly the path from a label
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIKITTY_FILE_META_PROPERTIES_FILE

public static String WIKITTY_FILE_META_PROPERTIES_FILE
The file name of the meta property file


WIKITTY_LABEL_SEPARATOR

public static String WIKITTY_LABEL_SEPARATOR

WIKITTY_ID_PROPERTIES_FILE

public static String WIKITTY_ID_PROPERTIES_FILE
The file Name of the id property file

Constructor Detail

WikittyFileUtil

public WikittyFileUtil()
Method Detail

labelToPath

public static String labelToPath(String label)
Construct correctly the path from a label

Parameters:
label - the label
Returns:
the correct path

createFilesFromLabelPath

public static boolean createFilesFromLabelPath(File homeFile,
                                               String label)
                                        throws IOException
Creates all the file system require from a label path in the working directory

Parameters:
homeFile -
label - the path string
Returns:
if all the path was created
Throws:
IOException


Copyright © 2010-2011 CodeLutin. All Rights Reserved.