Java Doc for listManager.java in  » Search-Engine » yacy » de » anomic » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » yacy » de.anomic.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.anomic.data.listManager

listManager
public class listManager (Code)


Field Summary
public static  FilelistsPath
    
public static  plasmaSwitchboardswitchboard
    


Method Summary
public static  Stringcollection2string(Collection<String> col)
     Simple conversion of a Collection of Strings to a comma separated String. If the implementing Collection subclass guaranties an order of its elements, the substrings of the result will have the same order.
Parameters:
  col - a Collection of Strings.
public static  String[]getDirListing(String dirname)
    
public static  String[]getDirListing(File dir)
     Read content of a directory into a String array of file names.
Parameters:
  dir - The directory to get the file listing from.
public static  ArrayList<File>getDirsRecursive(File dir, String notdir)
    
public static  ArrayList<File>getDirsRecursive(File dir, String notdir, boolean excludeDotfiles)
    
public static  ArrayList<String>getListArray(File listFile)
     Read lines of a file into an ArrayList.
public static  Set<String>getListSet(String setName)
     Get ListSet from configuration file and return it as a unified Set. Meaning of ListSet: There are various "lists" in YaCy which are actually disjunct (pairwise unequal) sets which themselves can be seperated into different subsets.
public static  StringgetListString(String filename, boolean withcomments)
    
public static  StringgetListString(File listFile, boolean withcomments)
     Read lines of a text file into a String, optionally ignoring comments.
Parameters:
  listFile - the File to read from.
Parameters:
  withcomments - If false ignore lines starting with '#'.
public static  booleanlistSetContains(String setName, String listName)
    
Parameters:
  setName - ListSet in which to search for an element.
Parameters:
  listName - the element to search for.
public static  voidreloadBlacklists()
    
public static  voidremoveFromListSet(String setName, String listName)
     Removes an element from a ListSet and updates the configuration file accordingly.
public static  ArrayList<String>string2arraylist(String string)
    
public static  Set<String>string2set(String string)
     Simple conversion of a comma separated list to a unified Set.
public static  Vector<String>string2vector(String string)
     Simple conversion of a comma separated list to a Vector containing the order of the substrings.
public static  voidupdateListSet(String setName, String newListName)
     Adds an element to an existing ListSet.
public static  booleanwriteList(File listFile, String out)
     Write a String to a file (used for string representation of lists).
public static  booleanwriteList(File listFile, String[] list)
     Write elements of an Array of Strings to a file (one element per line).

Field Detail
listsPath
public static File listsPath(Code)



switchboard
public static plasmaSwitchboard switchboard(Code)





Method Detail
collection2string
public static String collection2string(Collection<String> col)(Code)
Simple conversion of a Collection of Strings to a comma separated String. If the implementing Collection subclass guaranties an order of its elements, the substrings of the result will have the same order.
Parameters:
  col - a Collection of Strings. String with elements from set separated by comma.



getDirListing
public static String[] getDirListing(String dirname)(Code)



getDirListing
public static String[] getDirListing(File dir)(Code)
Read content of a directory into a String array of file names.
Parameters:
  dir - The directory to get the file listing from. If it doesn't exist yet,it will be created. array of file names



getDirsRecursive
public static ArrayList<File> getDirsRecursive(File dir, String notdir)(Code)



getDirsRecursive
public static ArrayList<File> getDirsRecursive(File dir, String notdir, boolean excludeDotfiles)(Code)
Returns a List of all dirs and subdirs as File Objects Warning: untested



getListArray
public static ArrayList<String> getListArray(File listFile)(Code)
Read lines of a file into an ArrayList.
Parameters:
  listFile - the file the resulting array as an ArrayList



getListSet
public static Set<String> getListSet(String setName)(Code)
Get ListSet from configuration file and return it as a unified Set. Meaning of ListSet: There are various "lists" in YaCy which are actually disjunct (pairwise unequal) sets which themselves can be seperated into different subsets. E.g., there can be more than one blacklist of a type. A ListSet is the set of all those "lists" (subsets) of an equal type.
Parameters:
  setName - name of the ListSet a ListSet from configuration file



getListString
public static String getListString(String filename, boolean withcomments)(Code)



getListString
public static String getListString(File listFile, boolean withcomments)(Code)
Read lines of a text file into a String, optionally ignoring comments.
Parameters:
  listFile - the File to read from.
Parameters:
  withcomments - If false ignore lines starting with '#'. String representation of the file content.



listSetContains
public static boolean listSetContains(String setName, String listName)(Code)

Parameters:
  setName - ListSet in which to search for an element.
Parameters:
  listName - the element to search for. true if the ListSet "setName" contains an element"listName", false otherwise.



reloadBlacklists
public static void reloadBlacklists()(Code)
Load or reload all active Blacklists



removeFromListSet
public static void removeFromListSet(String setName, String listName)(Code)
Removes an element from a ListSet and updates the configuration file accordingly. If the element doesn't exist, then nothing will be changed.
Parameters:
  setName - name of the ListSet.
Parameters:
  listName - name of the element to remove from the ListSet.



string2arraylist
public static ArrayList<String> string2arraylist(String string)(Code)

See Also:   listManager.string2vector(String)



string2set
public static Set<String> string2set(String string)(Code)
Simple conversion of a comma separated list to a unified Set.
Parameters:
  string - list of comma separated Strings resulting Set or empty Set if string is null



string2vector
public static Vector<String> string2vector(String string)(Code)
Simple conversion of a comma separated list to a Vector containing the order of the substrings.
Parameters:
  string - list of comma separated Strings resulting Vector or empty Vector if string is null



updateListSet
public static void updateListSet(String setName, String newListName)(Code)
Adds an element to an existing ListSet. If the ListSet doesn't exist yet, a new one will be added. If the ListSet already contains an identical element, then nothing happens. The new list will be written to the configuartion file.
Parameters:
  setName -
Parameters:
  newListName -



writeList
public static boolean writeList(File listFile, String out)(Code)
Write a String to a file (used for string representation of lists).
Parameters:
  listFile - the file to write to
Parameters:
  out - the String to write returns true if successful, false otherwise



writeList
public static boolean writeList(File listFile, String[] list)(Code)
Write elements of an Array of Strings to a file (one element per line).
Parameters:
  listFile - the file to write to
Parameters:
  list - the Array to write returns true if successful, false otherwise



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.