Top Constructors Methods
com.vladsch.flexmark.util.misc

public Class FileUtil

extends Object
Class Inheritance
Imports
org.jetbrains.annotations.NotNull, .Nullable, java.io.*, java.nio.charset.StandardCharsets, java.nio.file.Files

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public static @Nullable String
getFileContent(File receiver)

public static @Nullable byte[]
public static @NotNull byte[]
public static @NotNull String
public static String
getNameOnly(File receiver)

public static boolean
isChildOf(File receiver, File ancestor)

public static String
pathSlash(File receiver)

public static File
plus(File receiver, String name)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FileUtilback to summary
public FileUtil()

Method Detail

getDotExtensionback to summary
public static String getDotExtension(File receiver)
getFileContentback to summary
public static @Nullable String getFileContent(File receiver)
Annotations
@Nullable
getFileContentBytesback to summary
public static @Nullable byte[] getFileContentBytes(File receiver)
Annotations
@Nullable
getFileContentBytesWithExceptionsback to summary
public static @NotNull byte[] getFileContentBytesWithExceptions(File receiver) throws IOException
Annotations
@NotNull
getFileContentWithExceptionsback to summary
public static @NotNull String getFileContentWithExceptions(File receiver) throws IOException
Annotations
@NotNull
getNameOnlyback to summary
public static String getNameOnly(File receiver)
isChildOfback to summary
public static boolean isChildOf(File receiver, File ancestor)
pathSlashback to summary
public static String pathSlash(File receiver)
plusback to summary
public static File plus(File receiver, String name)