MultipartFormInputStream.MultiPart

Undocumented in source.

Constructors

this
this(string name, string filename)
Undocumented in source.

Members

Functions

cleanUp
void cleanUp()

Only remove tmp files.

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
createFile
void createFile()
Undocumented in source. Be warned that the author may not have intended to support it.
getBytes
byte[] getBytes()
Undocumented in source. Be warned that the author may not have intended to support it.
getContentDispositionFilename
string getContentDispositionFilename()

Get the filename from the content-disposition.

getContentType
string getContentType()

@see Part#getContentType()

getFile
string getFile()

Get the file

getHeader
string getHeader(string name)

@see Part#getHeader(string)

getHeaderNames
string[] getHeaderNames()

@see Part#getHeaderNames()

getHeaders
Collection!string getHeaders(string name)

@see Part#getHeaders(string)

getInputStream
InputStream getInputStream()

@see Part#getInputStream()

getName
string getName()

@see Part#getName()

getSize
long getSize()

@see Part#getSize()

getSubmittedFileName
string getSubmittedFileName()

@see Part#getSubmittedFileName()

open
void open()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove()

Remove the file, whether or not Part.write() was called on it (ie no longer temporary)

setContentType
void setContentType(string contentType)
Undocumented in source. Be warned that the author may not have intended to support it.
setHeaders
void setHeaders(MultiMap!string headers)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(int b)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(byte[] bytes, int offset, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(string fileName)

@see Part#write(string)

Variables

_bout
ByteArrayOutputStream _bout;
Undocumented in source.
_contentType
string _contentType;
Undocumented in source.
_file
string _file;
Undocumented in source.
_filename
string _filename;
Undocumented in source.
_headers
MultiMap!string _headers;
Undocumented in source.
_name
string _name;
Undocumented in source.
_out
OutputStream _out;
Undocumented in source.
_size
long _size;
Undocumented in source.
_temporary
bool _temporary;
Undocumented in source.

Inherited Members

From Part

getInputStream
InputStream getInputStream()

Gets the content of this part as an <tt>InputStream</tt>

getContentType
string getContentType()

Gets the content type of this part.

getName
string getName()

Gets the name of this part

getSubmittedFileName
string getSubmittedFileName()

Gets the file name specified by the client

getSize
long getSize()

Returns the size of this fille.

write
void write(string fileName)

A convenience method to write this uploaded item to disk.

remove
void remove()

Deletes the underlying storage for a file item, including deleting any associated temporary disk file.

getHeader
string getHeader(string name)

Returns the value of the specified mime header as a <code>string</code>. If the Part did not include a header of the specified name, this method returns <code>null</code>. If there are multiple headers with the same name, this method returns the first header in the part. The header name is case insensitive. You can use this method with any request header.

getHeaders
Collection!string getHeaders(string name)

Gets the values of the Part header with the given name.

getHeaderNames
string[] getHeaderNames()

Gets the header names of this Part.

toString
string toString()
Undocumented in source.

Meta