FileKt

public final class FileKt
public final class FileKt

Properties

Link copied to clipboard
private final static ByteArray bytesValue
private final static ByteArray bytesValue

The file value as an array of bytes, if any.

Link copied to clipboard
private final static MimeType mimeType
private final static MimeType mimeType

A MIME type of the file content.

Link copied to clipboard
private final static Path pathValue
private final static Path pathValue

The file value as a path, if any.

Functions

Link copied to clipboard
public final static File File()
public final static File File()

Creates an empty File.

public final static File File(Path path, MimeType mimeType, String name)
public final static File File(Path path, MimeType mimeType, String name)

Creates a new instance of File based on the given path.

public final static File File(ByteArray bytes, MimeType mimeType, String name)
public final static File File(ByteArray bytes, MimeType mimeType, String name)

Creates a new instance of File based on the given bytes array.

Link copied to clipboard
public final ByteArray getBytesValue()
public final ByteArray getBytesValue()
Link copied to clipboard
public final MimeType getMimeType()
public final MimeType getMimeType()
Link copied to clipboard
public final Path getPathValue()
public final Path getPathValue()