| java.lang.Object org.armedbear.j.Utilities
Method Summary | |
public static boolean | checkParentDirectory(File file, String context) | public static boolean | copyFile(File source, File destination) | public static int | countLines(String s) | public static JPanel | createPanel(String title) | public static String | cygnify(String s) | public static boolean | deleteRename(File source, File destination) | public static String | detab(String s, int tabWidth, int startCol) | final public static String | detab(String s, int tabWidth) | public static String | entab(String s, int tabWidth, int startCol) | final public static String | entab(String s, int tabWidth) | public static String | exec(String[] cmdarray) | public static String | extractInclude(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 File | findFile(Editor editor, String filename) | public static File | findFileInPath(String filename, String path, File currentDirectory) | public static File | findInclude(String s, String path, File currentDirectory) Finds an include file (C or C++). | final public static String | getCharsetFromContentType(String contentType) | public static Color | getColor(String s) | public static synchronized XMLReader | getDefaultXMLReader() | public static int | getDetabbedLength(String s, int tabWidth) | public static List | getDirectoriesInPath(String path) | final public static String | getEncodingFromCharset(String charset) | public static String | getExtension(String filename) | public static String | getExtension(File file) | public static int | getFileType(File file) | public static String | getFirstIdentifier(String s, Mode mode) | public static ImageIcon | getIconFromFile(String iconFile) | public static int | getIntegerProperty(Properties props, String key, int defaultValue) | public static KeyStroke | getKeyStroke(String keyText) | final public static String | getKeyText(KeyStroke keyStroke) | public static String | getKeyText(char keyChar, int keyCode, int modifiers) | public static String | getTagName(String s) | final public static File | getTempFile() | final public static File | getTempFile(File dir) | final public static File | getTempFile(String dir) | public static synchronized File | getTempFile(File dir, String extension) | public static String | getUserHome() | public static boolean | have(String s) | public static boolean | haveJpty() | public static boolean | haveLs() | public static boolean | isDelimited(Buffer buffer, Position pos, int length) | public static boolean | isDelimited(Mode mode, Position pos, int length) | public static boolean | isDelimited(Position pos, int length) | public static boolean | isDelimited(String s, int index, int length) | public static boolean | isDelimited(String s, int index, int length, Mode mode) | public static boolean | isDelimited(Mode mode, String s, int startIndex, int endIndex) | public static boolean | isDirectoryWritable(File dir) | public static boolean | isFilenameAbsolute(String filename) | public static boolean | isFilenameChar(char c) | public static boolean | isLinePaste(String s) | public static boolean | isLowerCase(String s) | public static boolean | isOneOf(String s, String[] strings) | public static boolean | isProcessAlive(Process process) | public static boolean | isSupportedEncoding(String encoding) | public static boolean | isUpperCase(String s) | public static boolean | isWhitespace(String s) | public static void | kill(int pid) | final public static boolean | lookingAt(String s, int i, String pattern, boolean ignoreCase) | public static boolean | makeBackup(File file, boolean keepOriginal) | public static boolean | makeBackup(File file, String name, boolean keepOriginal) | public static String | makeTabsVisible(String s, int tabWidth) | public static int | parseInt(String s) | public static String | propertyToXml(String name, String value) | public static String | rightJustify(int n, int fieldWidth) | public static String | rightJustify(String s, int fieldWidth) | final public static void | setUserHome(String s) | public static String | spaces(int count) | public static List | tokenize(String s) | public static String | trimLeading(String s) | public static String | trimTrailing(String s) | public static String | uncygnify(String s) | public static String | wrap(String s, int wrapCol, int tabWidth) |
checkParentDirectory | public static boolean checkParentDirectory(File file, String context)(Code) | | |
copyFile | public static boolean copyFile(File source, File destination)(Code) | | |
deleteRename | public static boolean deleteRename(File source, File destination)(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 |
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) | | |
getDefaultXMLReader | public static synchronized XMLReader getDefaultXMLReader()(Code) | | |
getDetabbedLength | public static int getDetabbedLength(String s, int tabWidth)(Code) | | |
getEncodingFromCharset | final public static String getEncodingFromCharset(String charset)(Code) | | |
getFileType | public static int getFileType(File file)(Code) | | |
getKeyText | public static String getKeyText(char keyChar, int keyCode, int modifiers)(Code) | | |
getTempFile | final public static File getTempFile()(Code) | | |
haveJpty | public static boolean haveJpty()(Code) | | |
haveLs | public static boolean haveLs()(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) | | |
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) | | |
rightJustify | public static String rightJustify(int n, int fieldWidth)(Code) | | |
setUserHome | final public static void setUserHome(String s)(Code) | | |
|
|