@Nullable
 public static String getRelativePath(
     @NotNull String basePath,
     @NotNull String filePath,
     final char separator,
     final boolean caseSensitive) {
   return FileUtilRt.getRelativePath(basePath, filePath, separator, caseSensitive);
 }
 @NotNull
 public static File createTempFile(
     @NonNls File dir,
     @NotNull @NonNls String prefix,
     @Nullable @NonNls String suffix,
     boolean create)
     throws IOException {
   return FileUtilRt.createTempFile(dir, prefix, suffix, create);
 }
 @NotNull
 public static File createTempDirectory(
     @NotNull File dir,
     @NotNull @NonNls String prefix,
     @Nullable @NonNls String suffix,
     boolean deleteOnExit)
     throws IOException {
   return FileUtilRt.createTempDirectory(dir, prefix, suffix, deleteOnExit);
 }
 @NotNull
 public static File createTempFile(@NotNull @NonNls String prefix, @Nullable @NonNls String suffix)
     throws IOException {
   return FileUtilRt.createTempFile(prefix, suffix);
 }
 @Nullable
 public static String getRelativePath(File base, File file) {
   return FileUtilRt.getRelativePath(base, file);
 }
 @NotNull
 public static String getNameWithoutExtension(@NotNull String name) {
   return FileUtilRt.getNameWithoutExtension(name);
 }
 public static boolean ensureCanCreateFile(@NotNull File file) {
   return FileUtilRt.ensureCanCreateFile(file);
 }
 public static boolean createDirectory(@NotNull File path) {
   return FileUtilRt.createDirectory(path);
 }
 @Nullable
 public static File getParentFile(@NotNull File file) {
   return FileUtilRt.getParentFile(file);
 }
Exemplo n.º 10
0
 @NotNull
 public static String loadFile(@NotNull File file, boolean convertLineSeparators)
     throws IOException {
   return FileUtilRt.loadFile(file, convertLineSeparators);
 }
Exemplo n.º 11
0
 @NotNull
 public static String loadFile(@NotNull File file) throws IOException {
   return FileUtilRt.loadFile(file);
 }
Exemplo n.º 12
0
 public static void setExecutableAttribute(@NotNull String path, boolean executableFlag)
     throws IOException {
   FileUtilRt.setExecutableAttribute(path, executableFlag);
 }
Exemplo n.º 13
0
 @NotNull
 public static File generateRandomTemporaryPath() throws IOException {
   return FileUtilRt.generateRandomTemporaryPath();
 }
Exemplo n.º 14
0
 @TestOnly
 public static void resetCanonicalTempPathCache(final String tempPath) {
   FileUtilRt.resetCanonicalTempPathCache(tempPath);
 }
Exemplo n.º 15
0
 @NotNull
 public static String getTempDirectory() {
   return FileUtilRt.getTempDirectory();
 }
Exemplo n.º 16
0
 @NotNull
 public static List<String> loadLines(@NotNull BufferedReader reader) throws IOException {
   return FileUtilRt.loadLines(reader);
 }
Exemplo n.º 17
0
 @NotNull
 public static byte[] loadBytes(@NotNull InputStream stream, int length) throws IOException {
   return FileUtilRt.loadBytes(stream, length);
 }
Exemplo n.º 18
0
 @NotNull
 public static String loadFile(
     @NotNull File file, @Nullable @NonNls String encoding, boolean convertLineSeparators)
     throws IOException {
   return FileUtilRt.loadFile(file, encoding, convertLineSeparators);
 }
Exemplo n.º 19
0
 public static boolean createParentDirs(@NotNull File file) {
   return FileUtilRt.createParentDirs(file);
 }
Exemplo n.º 20
0
 @NotNull
 public static char[] loadFileText(@NotNull File file) throws IOException {
   return FileUtilRt.loadFileText(file);
 }
Exemplo n.º 21
0
 public static boolean createIfDoesntExist(@NotNull File file) {
   return FileUtilRt.createIfNotExists(file);
 }
Exemplo n.º 22
0
 @NotNull
 public static char[] loadFileText(@NotNull File file, @Nullable @NonNls String encoding)
     throws IOException {
   return FileUtilRt.loadFileText(file, encoding);
 }
Exemplo n.º 23
0
 public static void copy(@NotNull InputStream inputStream, @NotNull OutputStream outputStream)
     throws IOException {
   FileUtilRt.copy(inputStream, outputStream);
 }
Exemplo n.º 24
0
 @NotNull
 public static char[] loadText(@NotNull Reader reader, int length) throws IOException {
   return FileUtilRt.loadText(reader, length);
 }
Exemplo n.º 25
0
 @NotNull
 public static String toSystemIndependentName(@NonNls @NotNull String aFileName) {
   return FileUtilRt.toSystemIndependentName(aFileName);
 }
Exemplo n.º 26
0
 @NotNull
 public static List<String> loadLines(@NotNull File file) throws IOException {
   return FileUtilRt.loadLines(file);
 }
Exemplo n.º 27
0
 @Nullable
 public static String getRelativePath(
     @NotNull String basePath, @NotNull String filePath, final char separator) {
   return FileUtilRt.getRelativePath(basePath, filePath, separator);
 }
Exemplo n.º 28
0
 @NotNull
 public static List<String> loadLines(@NotNull String path) throws IOException {
   return FileUtilRt.loadLines(path);
 }
Exemplo n.º 29
0
 /**
  * @deprecated this method returns extension converted to lower case, this may not be correct for
  *     case-sensitive FS. Use {@link FileUtilRt#getExtension(String)} instead to get the unchanged
  *     extension. If you need to check whether a file has a specified extension use {@link
  *     FileUtilRt#extensionEquals(String, String)}
  */
 @NotNull
 public static String getExtension(@NotNull String fileName) {
   return FileUtilRt.getExtension(fileName).toLowerCase();
 }
Exemplo n.º 30
0
 @NotNull
 public static List<String> loadLines(@NotNull String path, @Nullable @NonNls String encoding)
     throws IOException {
   return FileUtilRt.loadLines(path, encoding);
 }