Example usage for Java org.eclipse.jdt.internal.compiler.util Util fields, constructors, methods, implement or subclass
The text is from its open source code.
String | LINE_SEPARATOR |
String | EMPTY_STRING |
char[] | bytesToChar(byte[] bytes, String encoding) Returns the given bytes as a char array using a given encoding (null means platform default). |
void | collectRunningVMBootclasspath(List |
byte[] | getFileByteContent(File file) Returns the contents of the given file as a byte array. |
char[] | getFileCharContent(File file, String encoding) Returns the contents of the given file as a char array. |
byte[] | getInputStreamAsByteArray(InputStream stream, int length) Returns the given input stream's contents as a byte array. |
char[] | getInputStreamAsCharArray(InputStream stream, int length, String encoding) Returns the given input stream's contents as a character array. |
File | getJavaHome() |
int | getLineNumber(int position, int[] lineEnds, int g, int d) |
byte[] | getZipEntryByteContent(ZipEntry ze, ZipFile zip) Returns the contents of the given zip entry as a byte array. |
boolean | isClassFileName(char[] name) Returns true iff str.toLowerCase().endsWith(".class") implementation is not creating extra strings. |
boolean | isClassFileName(String name) Returns true iff str.toLowerCase().endsWith(".class") implementation is not creating extra strings. |
int | searchColumnNumber(int[] startLineIndexes, int lineNumber, int position) INTERNAL USE-ONLY Search the column number corresponding to a specific position |