Java Doc for Util.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » compiler » 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 » IDE Eclipse » jdt » org.eclipse.jdt.internal.compiler.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.jdt.internal.compiler.util.Util

Util
public class Util implements SuffixConstants(Code)

Inner Class :public interface Displayable

Field Summary
final public static  int[]EMPTY_INT_ARRAY
    
final public static  StringEMPTY_STRING
    
final public static  StringLINE_SEPARATOR
    
final public static  StringUTF_8
    


Method Summary
public static  char[]bytesToChar(byte[] bytes, String encoding)
     Returns the given bytes as a char array using a given encoding (null means platform default).
public static  byte[]getFileByteContent(File file)
     Returns the contents of the given file as a byte array.
public static  char[]getFileCharContent(File file, String encoding)
     Returns the contents of the given file as a char array.
public static  byte[]getInputStreamAsByteArray(InputStream stream, int length)
     Returns the given input stream's contents as a byte array. If a length is specified (ie.
public static  char[]getInputStreamAsCharArray(InputStream stream, int length, String encoding)
     Returns the given input stream's contents as a character array. If a length is specified (ie.
public static  intgetLineNumber(int position, int[] lineEnds, int g, int d)
    
public static  byte[]getZipEntryByteContent(ZipEntry ze, ZipFile zip)
     Returns the contents of the given zip entry as a byte array.
final public static  booleanisArchiveFileName(String name)
     Returns true iff str.toLowerCase().endsWith(".jar") || str.toLowerCase().endsWith(".zip") implementation is not creating extra strings.
final public static  booleanisClassFileName(char[] name)
     Returns true iff str.toLowerCase().endsWith(".class") implementation is not creating extra strings.
final public static  booleanisClassFileName(String name)
     Returns true iff str.toLowerCase().endsWith(".class") implementation is not creating extra strings.
final public static  booleanisExcluded(char[] path, char[][] inclusionPatterns, char[][] exclusionPatterns, boolean isFolderPath)
    
final public static  booleanisJavaFileName(char[] name)
     Returns true iff str.toLowerCase().endsWith(".java") implementation is not creating extra strings.
final public static  booleanisJavaFileName(String name)
     Returns true iff str.toLowerCase().endsWith(".java") implementation is not creating extra strings.
public static  voidreverseQuickSort(char[][] list, int left, int right, int[] result)
    
public static  voidreverseQuickSort(char[][] list, int left, int right)
    
final public static  intsearchColumnNumber(int[] startLineIndexes, int lineNumber, int position)
    
public static  BooleantoBoolean(boolean bool)
     Converts a boolean value into Boolean.
public static  StringtoString(Object[] objects)
     Converts an array of Objects into String.
public static  StringtoString(Object[] objects, Displayable renderer)
     Converts an array of Objects into String.

Field Detail
EMPTY_INT_ARRAY
final public static int[] EMPTY_INT_ARRAY(Code)



EMPTY_STRING
final public static String EMPTY_STRING(Code)



LINE_SEPARATOR
final public static String LINE_SEPARATOR(Code)



UTF_8
final public static String UTF_8(Code)





Method Detail
bytesToChar
public static char[] bytesToChar(byte[] bytes, String encoding) throws IOException(Code)
Returns the given bytes as a char array using a given encoding (null means platform default).



getFileByteContent
public static byte[] getFileByteContent(File file) throws IOException(Code)
Returns the contents of the given file as a byte array.
throws:
  IOException - if a problem occured reading the file.



getFileCharContent
public static char[] getFileCharContent(File file, String encoding) throws IOException(Code)
Returns the contents of the given file as a char array. When encoding is null, then the platform default one is used
throws:
  IOException - if a problem occured reading the file.



getInputStreamAsByteArray
public static byte[] getInputStreamAsByteArray(InputStream stream, int length) throws IOException(Code)
Returns the given input stream's contents as a byte array. If a length is specified (ie. if length != -1), only length bytes are returned. Otherwise all bytes in the stream are returned. Note this doesn't close the stream.
throws:
  IOException - if a problem occured reading the stream.



getInputStreamAsCharArray
public static char[] getInputStreamAsCharArray(InputStream stream, int length, String encoding) throws IOException(Code)
Returns the given input stream's contents as a character array. If a length is specified (ie. if length != -1), this represents the number of bytes in the stream. Note this doesn't close the stream.
throws:
  IOException - if a problem occured reading the stream.



getLineNumber
public static int getLineNumber(int position, int[] lineEnds, int g, int d)(Code)



getZipEntryByteContent
public static byte[] getZipEntryByteContent(ZipEntry ze, ZipFile zip) throws IOException(Code)
Returns the contents of the given zip entry as a byte array.
throws:
  IOException - if a problem occured reading the zip entry.



isArchiveFileName
final public static boolean isArchiveFileName(String name)(Code)
Returns true iff str.toLowerCase().endsWith(".jar") || str.toLowerCase().endsWith(".zip") implementation is not creating extra strings.



isClassFileName
final public static boolean isClassFileName(char[] name)(Code)
Returns true iff str.toLowerCase().endsWith(".class") implementation is not creating extra strings.



isClassFileName
final public static boolean isClassFileName(String name)(Code)
Returns true iff str.toLowerCase().endsWith(".class") implementation is not creating extra strings.



isExcluded
final public static boolean isExcluded(char[] path, char[][] inclusionPatterns, char[][] exclusionPatterns, boolean isFolderPath)(Code)



isJavaFileName
final public static boolean isJavaFileName(char[] name)(Code)
Returns true iff str.toLowerCase().endsWith(".java") implementation is not creating extra strings.



isJavaFileName
final public static boolean isJavaFileName(String name)(Code)
Returns true iff str.toLowerCase().endsWith(".java") implementation is not creating extra strings.



reverseQuickSort
public static void reverseQuickSort(char[][] list, int left, int right, int[] result)(Code)



reverseQuickSort
public static void reverseQuickSort(char[][] list, int left, int right)(Code)



searchColumnNumber
final public static int searchColumnNumber(int[] startLineIndexes, int lineNumber, int position)(Code)
INTERNAL USE-ONLY Search the column number corresponding to a specific position



toBoolean
public static Boolean toBoolean(boolean bool)(Code)
Converts a boolean value into Boolean.
Parameters:
  bool - The boolean to convert The corresponding Boolean object (TRUE or FALSE).



toString
public static String toString(Object[] objects)(Code)
Converts an array of Objects into String.



toString
public static String toString(Object[] objects, Displayable renderer)(Code)
Converts an array of Objects into String.



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.