Java Doc for Utils.java in  » IDE-Eclipse » Eclipse-plug-in-development » org » eclipse » pde » internal » build » 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 » IDE Eclipse » Eclipse plug in development » org.eclipse.pde.internal.build 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.pde.internal.build.Utils

Utils
final public class Utils implements IPDEBuildConstants,IBuildPropertiesConstants,IXMLConstants(Code)
General utility class.




Method Summary
public static  File[]asFile(String[] target)
    
public static  File[]asFile(URL[] target)
    
public static  URL[]asURL(String[] target)
     Converts an array of strings into an array of URLs.
public static  URL[]asURL(Collection target)
    
public static  CollectioncopyFiles(String fromDir, String toDir)
    
public static  ListextractPlugins(List initialList, List toExtract)
    
public static  CollectionfindFiles(File from, String foldername, String filename)
    
public static  voidgeneratePermissions(Properties featureProperties, Config aConfig, String targetRootProperty, AntScript script)
    
public static  String[]getArrayFromString(String list, String separator)
     Convert a list of tokens into an array.
public static  String[]getArrayFromString(String list)
     Return a string array constructed from the given list of comma-separated tokens.
public static  String[]getArrayFromStringWithBlank(String list, String separator)
     Convert a list of tokens into an array.
public static  IPluginEntry[]getPluginEntry(IFeature feature, String pluginId, boolean raw)
    
public static  StringgetPropertyFormat(String propertyName)
     Return a string with the given property name in the format:
${propertyName}
.
public static  StringgetStringFromArray(String[] values, String separator)
     Return a string which is a concatination of each member of the given array, separated by the given separator.
public static  StringgetStringFromCollection(Collection collection, String separator)
     Return a string which is a concatination of each member of the given collection, separated by the given separator.
public static  booleanisBinary(BundleDescription bundle)
    
public static  booleanisIn(IPluginEntry[] array, IPluginEntry element)
    
public static  intisStringIn(String[] searched, String toSearch)
    
public static  IPathmakeRelative(IPath location, IPath base)
     Return a path which is equivalent to the given location relative to the specified base path.
public static  Object[]parseExtraBundlesString(String input, boolean onlyId)
    
public static  StringremoveEndingSlashes(String value)
    
public static  voidtransferStreams(InputStream source, OutputStream destination)
     Transfers all available bytes from the given input stream to the given output stream.



Method Detail
asFile
public static File[] asFile(String[] target)(Code)



asFile
public static File[] asFile(URL[] target)(Code)



asURL
public static URL[] asURL(String[] target) throws CoreException(Code)
Converts an array of strings into an array of URLs.
Parameters:
  target - URL[]
throws:
  CoreException -



asURL
public static URL[] asURL(Collection target) throws CoreException(Code)



copyFiles
public static Collection copyFiles(String fromDir, String toDir) throws CoreException(Code)



extractPlugins
public static List extractPlugins(List initialList, List toExtract)(Code)



findFiles
public static Collection findFiles(File from, String foldername, String filename)(Code)



generatePermissions
public static void generatePermissions(Properties featureProperties, Config aConfig, String targetRootProperty, AntScript script)(Code)



getArrayFromString
public static String[] getArrayFromString(String list, String separator)(Code)
Convert a list of tokens into an array. The list separator has to be specified.



getArrayFromString
public static String[] getArrayFromString(String list)(Code)
Return a string array constructed from the given list of comma-separated tokens.
Parameters:
  list - the list to convert the array of strings



getArrayFromStringWithBlank
public static String[] getArrayFromStringWithBlank(String list, String separator)(Code)
Convert a list of tokens into an array. The list separator has to be specified. The spcecificity of this method is that it returns an empty element when to same separators are following each others. For example the string a,,b returns the following array [a, ,b]



getPluginEntry
public static IPluginEntry[] getPluginEntry(IFeature feature, String pluginId, boolean raw)(Code)



getPropertyFormat
public static String getPropertyFormat(String propertyName)(Code)
Return a string with the given property name in the format:
${propertyName}
.
Parameters:
  propertyName - the name of the property String



getStringFromArray
public static String getStringFromArray(String[] values, String separator)(Code)
Return a string which is a concatination of each member of the given array, separated by the given separator.
Parameters:
  values - the array to concatinate
Parameters:
  separator - the separator to use String



getStringFromCollection
public static String getStringFromCollection(Collection collection, String separator)(Code)
Return a string which is a concatination of each member of the given collection, separated by the given separator.
Parameters:
  collection - the collection to concatinate
Parameters:
  separator - the separator to use String



isBinary
public static boolean isBinary(BundleDescription bundle)(Code)



isIn
public static boolean isIn(IPluginEntry[] array, IPluginEntry element)(Code)



isStringIn
public static int isStringIn(String[] searched, String toSearch)(Code)



makeRelative
public static IPath makeRelative(IPath location, IPath base)(Code)
Return a path which is equivalent to the given location relative to the specified base path.
Parameters:
  location - the location to convert
Parameters:
  base - the base path IPath



parseExtraBundlesString
public static Object[] parseExtraBundlesString(String input, boolean onlyId)(Code)



removeEndingSlashes
public static String removeEndingSlashes(String value)(Code)



transferStreams
public static void transferStreams(InputStream source, OutputStream destination) throws IOException(Code)
Transfers all available bytes from the given input stream to the given output stream. Regardless of failure, this method closes both streams.
Parameters:
  source -
Parameters:
  destination -
throws:
  IOException -



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.