Java Doc for Util.java in  » Portal » Open-Portal » com » sun » portal » sra » admin » util » 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 » Portal » Open Portal » com.sun.portal.sra.admin.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.sra.admin.util.Util

Util
public class Util (Code)


Field Summary
protected static  Stringname_
    

Constructor Summary
public  Util()
    

Method Summary
public static  voidaddFileToJar(String jarPath, String entryName, File file)
    
public static  voidaddJarToClasspath(String jarFileName)
    
public static  voidappendLineEof(File file, String text, boolean checkIfExists)
    
public static  booleanappendLineInFile(File file, String match, String text)
    
public static  voidchangeFilePermission(String targetfile, String permission)
    
public static  voidcopyDir(String fromDirName, String toDirName)
    
public static  voidcopyFile(String fromFilename, String toFilename)
    
public static  voidcopyFile(File fromFile, File toFile)
    
public static  voidcopyFile(File fromFile, File toFile, boolean deleteSourceFile)
    
public static  voidcreateSymbolicLink(String source, String target)
    
public static  voiddebug(String str)
    
public static  StringdecoratePath(String path)
    
public static  booleandeleteDir(String dirName)
    
public static  booleandeleteDir(File dir)
    
public static  booleandeleteFile(String filename)
    
public static  booleandeleteFile(File file)
    
public static  voiddeleteLineInFile(File file, String pattern)
    
public static  voiddeleteUntilBlankLineInFile(File file, String startPattern)
    
public static  booleandirectoryExists(String dirName)
    
public static  voiddos2unix(File file)
    
public static  StringescapeSpaces(String str)
    
public static  Readerexecute(String command, String[] args, Vector envs, File dir)
    
public static  ReaderexecuteWindows(String command, String[] args, Vector envs, File dir)
    
public static  FileextractFileFromJar(String jarPath, String filePath)
    
public static  StringextractPattern(File file, String patternBegin, String patternEnd)
    
public static  voidextractPatternFromFile(File file, StringBuffer target, String patternBegin, String patternEnd)
    
public static  StringextractPatternTillEOL(File file, String key, String separator)
    
public static  booleanfileExists(String filename)
    
public static  StringfindTextInFile(File file, String text)
    
public static  FilenameFiltergetExtensionFilter(String ext)
    
public static  voidgetFiles(File pwd, Vector allFiles)
    
public static  voidgetFilteredFiles(File pwd, Vector allFiles, String ext)
    
public static  File[]getSubDirectories(File parent)
    
public static  booleanisOS(String type)
    
public static  booleanisRoot()
    
public static  booleanis_hpux()
    
public static  booleanis_linux()
    
public static  booleanis_windows()
    
public static  booleanmakeDir(String dirName)
    
public static  booleanmatch(String name)
    
public static  booleanmatch_os(String os_name)
    
public static  voidmoveFile(String fromFilename, String toFilename)
    
public static  voidmoveFile(File fromFile, File toFile)
    
public static  voidrenameDir(String fromDirName, String toDirName)
    
public static  voidreplaceAllInstancesOfTokenInFile(File file, String token, String newText)
    
public static  voidreplaceAllInstancesOfTokenInFile(File origFile, File newFile, String token, String newText)
    
public static  voidreplaceLineInFile(File file, String pattern, StringBuffer text)
    
public static  StringreplaceToken(String source, String token, String newText)
    
public static  voidreplaceTokenInFile(File origFile, File newFile, String token, String newText)
    
public static  voidreplaceTokenInFile(File file, String token, String newText)
    
public static  voidreplaceTokenInFile(File file, String[] tokens, String[] values)
    
public static  StringreplaceTokens(String source, String[] tokens, String[] values)
    
public static  ReaderrunCommandLine(String command)
    
public static  ReaderrunCommandLine(String command, String[] args)
    
public static  ReaderrunCommandLine(String command, String[] args, Vector envs)
    
public static  ReaderrunCommandLine(String command, String[] args, Vector envs, File dir)
    

Field Detail
name_
protected static String name_(Code)




Constructor Detail
Util
public Util()(Code)




Method Detail
addFileToJar
public static void addFileToJar(String jarPath, String entryName, File file) throws IOException, FileNotFoundException(Code)



addJarToClasspath
public static void addJarToClasspath(String jarFileName)(Code)



appendLineEof
public static void appendLineEof(File file, String text, boolean checkIfExists) throws IOException, FileNotFoundException(Code)



appendLineInFile
public static boolean appendLineInFile(File file, String match, String text) throws IOException, FileNotFoundException(Code)



changeFilePermission
public static void changeFilePermission(String targetfile, String permission) throws Exception(Code)



copyDir
public static void copyDir(String fromDirName, String toDirName) throws FileNotFoundException, IOException(Code)



copyFile
public static void copyFile(String fromFilename, String toFilename) throws FileNotFoundException, IOException(Code)



copyFile
public static void copyFile(File fromFile, File toFile) throws FileNotFoundException, IOException(Code)



copyFile
public static void copyFile(File fromFile, File toFile, boolean deleteSourceFile) throws FileNotFoundException, IOException(Code)



createSymbolicLink
public static void createSymbolicLink(String source, String target) throws Exception(Code)



debug
public static void debug(String str)(Code)



decoratePath
public static String decoratePath(String path)(Code)



deleteDir
public static boolean deleteDir(String dirName)(Code)



deleteDir
public static boolean deleteDir(File dir)(Code)



deleteFile
public static boolean deleteFile(String filename)(Code)



deleteFile
public static boolean deleteFile(File file)(Code)



deleteLineInFile
public static void deleteLineInFile(File file, String pattern) throws IOException, FileNotFoundException(Code)



deleteUntilBlankLineInFile
public static void deleteUntilBlankLineInFile(File file, String startPattern) throws IOException, FileNotFoundException(Code)



directoryExists
public static boolean directoryExists(String dirName)(Code)



dos2unix
public static void dos2unix(File file) throws FileNotFoundException, IOException(Code)



escapeSpaces
public static String escapeSpaces(String str)(Code)



execute
public static Reader execute(String command, String[] args, Vector envs, File dir) throws Exception(Code)



executeWindows
public static Reader executeWindows(String command, String[] args, Vector envs, File dir) throws Exception(Code)



extractFileFromJar
public static File extractFileFromJar(String jarPath, String filePath) throws IOException, FileNotFoundException(Code)



extractPattern
public static String extractPattern(File file, String patternBegin, String patternEnd) throws IOException, FileNotFoundException(Code)



extractPatternFromFile
public static void extractPatternFromFile(File file, StringBuffer target, String patternBegin, String patternEnd) throws IOException, FileNotFoundException(Code)



extractPatternTillEOL
public static String extractPatternTillEOL(File file, String key, String separator)(Code)



fileExists
public static boolean fileExists(String filename)(Code)



findTextInFile
public static String findTextInFile(File file, String text) throws FileNotFoundException, IOException(Code)



getExtensionFilter
public static FilenameFilter getExtensionFilter(String ext)(Code)



getFiles
public static void getFiles(File pwd, Vector allFiles) throws NullPointerException(Code)



getFilteredFiles
public static void getFilteredFiles(File pwd, Vector allFiles, String ext) throws NullPointerException(Code)



getSubDirectories
public static File[] getSubDirectories(File parent)(Code)



isOS
public static boolean isOS(String type)(Code)



isRoot
public static boolean isRoot()(Code)



is_hpux
public static boolean is_hpux()(Code)



is_linux
public static boolean is_linux()(Code)



is_windows
public static boolean is_windows()(Code)



makeDir
public static boolean makeDir(String dirName)(Code)



match
public static boolean match(String name)(Code)



match_os
public static boolean match_os(String os_name)(Code)



moveFile
public static void moveFile(String fromFilename, String toFilename) throws FileNotFoundException, IOException(Code)



moveFile
public static void moveFile(File fromFile, File toFile) throws FileNotFoundException, IOException(Code)



renameDir
public static void renameDir(String fromDirName, String toDirName) throws FileNotFoundException, IOException(Code)



replaceAllInstancesOfTokenInFile
public static void replaceAllInstancesOfTokenInFile(File file, String token, String newText) throws FileNotFoundException, IOException(Code)



replaceAllInstancesOfTokenInFile
public static void replaceAllInstancesOfTokenInFile(File origFile, File newFile, String token, String newText) throws FileNotFoundException, IOException(Code)



replaceLineInFile
public static void replaceLineInFile(File file, String pattern, StringBuffer text) throws IOException, FileNotFoundException(Code)



replaceToken
public static String replaceToken(String source, String token, String newText)(Code)



replaceTokenInFile
public static void replaceTokenInFile(File origFile, File newFile, String token, String newText) throws FileNotFoundException, IOException(Code)



replaceTokenInFile
public static void replaceTokenInFile(File file, String token, String newText) throws FileNotFoundException, IOException(Code)



replaceTokenInFile
public static void replaceTokenInFile(File file, String[] tokens, String[] values) throws FileNotFoundException, IOException(Code)



replaceTokens
public static String replaceTokens(String source, String[] tokens, String[] values)(Code)



runCommandLine
public static Reader runCommandLine(String command) throws Exception(Code)



runCommandLine
public static Reader runCommandLine(String command, String[] args) throws Exception(Code)



runCommandLine
public static Reader runCommandLine(String command, String[] args, Vector envs) throws Exception(Code)



runCommandLine
public static Reader runCommandLine(String command, String[] args, Vector envs, File dir) throws Exception(Code)



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.