Class MultiPartFormInputStream.MultiPart
java.lang.Object
org.eclipse.jetty.ee8.nested.MultiPartFormInputStream.MultiPart
- All Implemented Interfaces:
 javax.servlet.http.Part
- Enclosing class:
 MultiPartFormInputStream
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayOutputStream2protected Stringprotected Fileprotected Stringprotected Stringprotected OutputStreamprotected longprotected boolean - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()Only remove tmp files.protected voidclose()protected voidvoiddelete()Remove the file, whether or not Part.write() was called on it (ie no longer temporary)byte[]getBytes()Get the filename from the content-disposition.getFile()Get the filegetHeaders(String name) getName()longgetSize()protected voidopen()protected voidsetContentType(String contentType) protected voidsetHeaders(MultiMap<String> headers) toString()protected voidwrite(byte[] bytes, int offset, int length) protected voidwrite(int b) void 
- 
Field Details
- 
_name
 - 
_filename
 - 
_file
 - 
_out
 - 
_bout
 - 
_contentType
 - 
_headers
 - 
_size
protected long _size - 
_temporary
protected boolean _temporary 
 - 
 - 
Constructor Details
- 
MultiPart
 
 - 
 - 
Method Details
- 
toString
 - 
setContentType
 - 
open
- Throws:
 IOException
 - 
close
- Throws:
 IOException
 - 
write
- Throws:
 IOException
 - 
write
- Throws:
 IOException
 - 
write
- Specified by:
 writein interfacejavax.servlet.http.Part- Throws:
 IOException
 - 
createFile
- Throws:
 IOException
 - 
setHeaders
 - 
getContentType
- Specified by:
 getContentTypein interfacejavax.servlet.http.Part
 - 
getHeader
 - 
getHeaderNames
- Specified by:
 getHeaderNamesin interfacejavax.servlet.http.Part
 - 
getHeaders
- Specified by:
 getHeadersin interfacejavax.servlet.http.Part
 - 
getInputStream
- Specified by:
 getInputStreamin interfacejavax.servlet.http.Part- Throws:
 IOException
 - 
getSubmittedFileName
- Specified by:
 getSubmittedFileNamein interfacejavax.servlet.http.Part
 - 
getBytes
public byte[] getBytes() - 
getName
- Specified by:
 getNamein interfacejavax.servlet.http.Part
 - 
getSize
public long getSize()- Specified by:
 getSizein interfacejavax.servlet.http.Part
 - 
delete
Remove the file, whether or not Part.write() was called on it (ie no longer temporary)- Specified by:
 deletein interfacejavax.servlet.http.Part- Throws:
 IOException
 - 
cleanUp
Only remove tmp files.- Throws:
 IOException- if unable to delete the file
 - 
getFile
 - 
getContentDispositionFilename
Get the filename from the content-disposition.- Returns:
 - null or the filename
 
 
 -