Class FormData.FileItemImpl
java.lang.Object
org.jboss.resteasy.reactive.server.core.multipart.FormData.FileItemImpl
- All Implemented Interfaces:
FileItem
- Enclosing class:
FormData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()If the part represents a file on the file system, delete it, otherwise do nothinggetFile()Gives access to the file stored on the file system.longThe size of the body - works regardless of the result ofisInMemoryThe body represented as anInputStream- works regardless of the result ofisInMemorybooleanDetermines whether the body is held in memoryvoidCopy the body to the specifiedPath- works regardless of the result ofisInMemory
-
Constructor Details
-
FileItemImpl
-
FileItemImpl
public FileItemImpl(byte[] content)
-
-
Method Details
-
isInMemory
public boolean isInMemory()Description copied from interface:FileItemDetermines whether the body is held in memory- Specified by:
isInMemoryin interfaceFileItem
-
getFile
Description copied from interface:FileItemGives access to the file stored on the file system. This should only be used whenisInMemoryisfalse -
getFileSize
Description copied from interface:FileItemThe size of the body - works regardless of the result ofisInMemory- Specified by:
getFileSizein interfaceFileItem- Throws:
IOException
-
getInputStream
Description copied from interface:FileItemThe body represented as anInputStream- works regardless of the result ofisInMemory- Specified by:
getInputStreamin interfaceFileItem- Throws:
IOException
-
delete
Description copied from interface:FileItemIf the part represents a file on the file system, delete it, otherwise do nothing- Specified by:
deletein interfaceFileItem- Throws:
IOException
-
write
Description copied from interface:FileItemCopy the body to the specifiedPath- works regardless of the result ofisInMemory- Specified by:
writein interfaceFileItem- Throws:
IOException
-