Java Doc for Utilities.java in  » IDE » J » org » armedbear » j » 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
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE » J » org.armedbear.j 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.armedbear.j.Utilities

Utilities
final public class Utilities implements Constants(Code)




Method Summary
public static  booleancheckParentDirectory(File file, String context)
    
public static  booleancopyFile(File source, File destination)
    
public static  intcountLines(String s)
    
public static  JPanelcreatePanel(String title)
    
public static  Stringcygnify(String s)
    
public static  booleandeleteRename(File source, File destination)
    
public static  Stringdetab(String s, int tabWidth, int startCol)
    
final public static  Stringdetab(String s, int tabWidth)
    
public static  Stringentab(String s, int tabWidth, int startCol)
    
final public static  Stringentab(String s, int tabWidth)
    
public static  Stringexec(String[] cmdarray)
    
public static  StringextractInclude(String line)
     Extracts the name of an include file, enclosed in quotes or angle brackets, from a #include line in a C or C++ source file.
public static  FilefindFile(Editor editor, String filename)
    
public static  FilefindFileInPath(String filename, String path, File currentDirectory)
    
public static  FilefindInclude(String s, String path, File currentDirectory)
     Finds an include file (C or C++).
final public static  StringgetCharsetFromContentType(String contentType)
    
public static  ColorgetColor(String s)
    
public static synchronized  XMLReadergetDefaultXMLReader()
    
public static  intgetDetabbedLength(String s, int tabWidth)
    
public static  ListgetDirectoriesInPath(String path)
    
final public static  StringgetEncodingFromCharset(String charset)
    
public static  StringgetExtension(String filename)
    
public static  StringgetExtension(File file)
    
public static  intgetFileType(File file)
    
public static  StringgetFirstIdentifier(String s, Mode mode)
    
public static  ImageIcongetIconFromFile(String iconFile)
    
public static  intgetIntegerProperty(Properties props, String key, int defaultValue)
    
public static  KeyStrokegetKeyStroke(String keyText)
    
final public static  StringgetKeyText(KeyStroke keyStroke)
    
public static  StringgetKeyText(char keyChar, int keyCode, int modifiers)
    
public static  StringgetTagName(String s)
    
final public static  FilegetTempFile()
    
final public static  FilegetTempFile(File dir)
    
final public static  FilegetTempFile(String dir)
    
public static synchronized  FilegetTempFile(File dir, String extension)
    
public static  StringgetUserHome()
    
public static  booleanhave(String s)
    
public static  booleanhaveJpty()
    
public static  booleanhaveLs()
    
public static  booleanisDelimited(Buffer buffer, Position pos, int length)
    
public static  booleanisDelimited(Mode mode, Position pos, int length)
    
public static  booleanisDelimited(Position pos, int length)
    
public static  booleanisDelimited(String s, int index, int length)
    
public static  booleanisDelimited(String s, int index, int length, Mode mode)
    
public static  booleanisDelimited(Mode mode, String s, int startIndex, int endIndex)
    
public static  booleanisDirectoryWritable(File dir)
    
public static  booleanisFilenameAbsolute(String filename)
    
public static  booleanisFilenameChar(char c)
    
public static  booleanisLinePaste(String s)
    
public static  booleanisLowerCase(String s)
    
public static  booleanisOneOf(String s, String[] strings)
    
public static  booleanisProcessAlive(Process process)
    
public static  booleanisSupportedEncoding(String encoding)
    
public static  booleanisUpperCase(String s)
    
public static  booleanisWhitespace(String s)
    
public static  voidkill(int pid)
    
final public static  booleanlookingAt(String s, int i, String pattern, boolean ignoreCase)
    
public static  booleanmakeBackup(File file, boolean keepOriginal)
    
public static  booleanmakeBackup(File file, String name, boolean keepOriginal)
    
public static  StringmakeTabsVisible(String s, int tabWidth)
    
public static  intparseInt(String s)
    
public static  StringpropertyToXml(String name, String value)
    
public static  StringrightJustify(int n, int fieldWidth)
    
public static  StringrightJustify(String s, int fieldWidth)
    
final public static  voidsetUserHome(String s)
    
public static  Stringspaces(int count)
    
public static  Listtokenize(String s)
    
public static  StringtrimLeading(String s)
    
public static  StringtrimTrailing(String s)
    
public static  Stringuncygnify(String s)
    
public static  Stringwrap(String s, int wrapCol, int tabWidth)
    



Method Detail
checkParentDirectory
public static boolean checkParentDirectory(File file, String context)(Code)



copyFile
public static boolean copyFile(File source, File destination)(Code)



countLines
public static int countLines(String s)(Code)



createPanel
public static JPanel createPanel(String title)(Code)



cygnify
public static String cygnify(String s)(Code)



deleteRename
public static boolean deleteRename(File source, File destination)(Code)



detab
public static String detab(String s, int tabWidth, int startCol)(Code)



detab
final public static String detab(String s, int tabWidth)(Code)



entab
public static String entab(String s, int tabWidth, int startCol)(Code)



entab
final public static String entab(String s, int tabWidth)(Code)



exec
public static String exec(String[] cmdarray)(Code)



extractInclude
public static String extractInclude(String line)(Code)
Extracts the name of an include file, enclosed in quotes or angle brackets, from a #include line in a C or C++ source file.
Parameters:
  line - the #include line the name of the file, enclosed in quotes or anglebrackets as the case may be, or null ifthe line in question is not a valid #include line.
since:
   0.16.2



findFile
public static File findFile(Editor editor, String filename)(Code)



findFileInPath
public static File findFileInPath(String filename, String path, File currentDirectory)(Code)



findInclude
public static File findInclude(String s, String path, File currentDirectory)(Code)
Finds an include file (C or C++).

If the filename is enclosed in quotes, we look for it in the current directory first.
Parameters:
  s - the name of the file, enclosed in quotes orangle brackets as the case may be
Parameters:
  path - the include path
Parameters:
  currentDirectory - the current directory the file, or null if not found
since:
   0.16.2




getCharsetFromContentType
final public static String getCharsetFromContentType(String contentType)(Code)



getColor
public static Color getColor(String s)(Code)



getDefaultXMLReader
public static synchronized XMLReader getDefaultXMLReader()(Code)



getDetabbedLength
public static int getDetabbedLength(String s, int tabWidth)(Code)



getDirectoriesInPath
public static List getDirectoriesInPath(String path)(Code)



getEncodingFromCharset
final public static String getEncodingFromCharset(String charset)(Code)



getExtension
public static String getExtension(String filename)(Code)



getExtension
public static String getExtension(File file)(Code)



getFileType
public static int getFileType(File file)(Code)



getFirstIdentifier
public static String getFirstIdentifier(String s, Mode mode)(Code)



getIconFromFile
public static ImageIcon getIconFromFile(String iconFile)(Code)



getIntegerProperty
public static int getIntegerProperty(Properties props, String key, int defaultValue)(Code)



getKeyStroke
public static KeyStroke getKeyStroke(String keyText)(Code)



getKeyText
final public static String getKeyText(KeyStroke keyStroke)(Code)



getKeyText
public static String getKeyText(char keyChar, int keyCode, int modifiers)(Code)



getTagName
public static String getTagName(String s)(Code)



getTempFile
final public static File getTempFile()(Code)



getTempFile
final public static File getTempFile(File dir)(Code)



getTempFile
final public static File getTempFile(String dir)(Code)



getTempFile
public static synchronized File getTempFile(File dir, String extension)(Code)



getUserHome
public static String getUserHome()(Code)



have
public static boolean have(String s)(Code)



haveJpty
public static boolean haveJpty()(Code)



haveLs
public static boolean haveLs()(Code)



isDelimited
public static boolean isDelimited(Buffer buffer, Position pos, int length)(Code)



isDelimited
public static boolean isDelimited(Mode mode, Position pos, int length)(Code)



isDelimited
public static boolean isDelimited(Position pos, int length)(Code)



isDelimited
public static boolean isDelimited(String s, int index, int length)(Code)



isDelimited
public static boolean isDelimited(String s, int index, int length, Mode mode)(Code)



isDelimited
public static boolean isDelimited(Mode mode, String s, int startIndex, int endIndex)(Code)



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



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



isFilenameChar
public static boolean isFilenameChar(char c)(Code)



isLinePaste
public static boolean isLinePaste(String s)(Code)



isLowerCase
public static boolean isLowerCase(String s)(Code)



isOneOf
public static boolean isOneOf(String s, String[] strings)(Code)



isProcessAlive
public static boolean isProcessAlive(Process process)(Code)



isSupportedEncoding
public static boolean isSupportedEncoding(String encoding)(Code)



isUpperCase
public static boolean isUpperCase(String s)(Code)



isWhitespace
public static boolean isWhitespace(String s)(Code)



kill
public static void kill(int pid)(Code)



lookingAt
final public static boolean lookingAt(String s, int i, String pattern, boolean ignoreCase)(Code)



makeBackup
public static boolean makeBackup(File file, boolean keepOriginal)(Code)



makeBackup
public static boolean makeBackup(File file, String name, boolean keepOriginal)(Code)



makeTabsVisible
public static String makeTabsVisible(String s, int tabWidth)(Code)



parseInt
public static int parseInt(String s) throws NumberFormatException(Code)



propertyToXml
public static String propertyToXml(String name, String value)(Code)



rightJustify
public static String rightJustify(int n, int fieldWidth)(Code)



rightJustify
public static String rightJustify(String s, int fieldWidth)(Code)



setUserHome
final public static void setUserHome(String s)(Code)



spaces
public static String spaces(int count)(Code)



tokenize
public static List tokenize(String s)(Code)



trimLeading
public static String trimLeading(String s)(Code)



trimTrailing
public static String trimTrailing(String s)(Code)



uncygnify
public static String uncygnify(String s)(Code)



wrap
public static String wrap(String s, int wrapCol, int tabWidth)(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 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.