- java.lang.Object
-
- com.kttdevelopment.simplehttpserver.Record
-
- com.kttdevelopment.simplehttpserver.FileRecord
-
public class FileRecord extends Record
This class represents on set of headers and parameters in a multipart/form-data that is expected of a file input.- Since:
- 4.0.0
- Version:
- 4.0.0
- Author:
- Ktt Development
- See Also:
MultipartFormData,Record,Record.Header
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.kttdevelopment.simplehttpserver.Record
Record.Header
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()Returns the file as bytes.StringgetContentType()Returns the content type of the file.StringgetFileName()Returns the file name.StringtoString()-
Methods inherited from class com.kttdevelopment.simplehttpserver.Record
getHeader, getHeaders, getName, getValue
-
-
-
-
Method Detail
-
getFileName
public final String getFileName()
Returns the file name.- Returns:
- file name
- Since:
- 4.0.0
-
getContentType
public final String getContentType()
Returns the content type of the file.- Returns:
- content type
- Since:
- 4.0.0
-
getBytes
public final byte[] getBytes()
Returns the file as bytes.- Returns:
- file in bytes
- Since:
- 4.0.0
- See Also:
Record.getValue()
-
-