Package com.teamdev.jxbrowser.net
Interface File
public interface File
File data.
Depending on how the File instance is created, it can correspond to one
of the following:
- File path, if the file is selected from an
<input type="file">element in a submitted form. - File bytes, if the request is created via the JavaScript API,
and a file is passed as a part of the
multipart/form-databody.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<byte[]>Returns the file value as an array of bytes.default StringReturns the content type.default Stringname()Returns the file name.static File.BuilderCreates a newFilebuilder.Returns the file value as a file path.
-
Method Details
-
newBuilder
Creates a newFilebuilder.- Returns:
- a new
File.Builderinstance
-
name
Returns the file name. -
contentType
Returns the content type. -
pathValue
Returns the file value as a file path. -
bytesValue
Returns the file value as an array of bytes.
-