public class DigestFileItem
extends org.apache.commons.fileupload.disk.DiskFileItem
| Constructor and Description |
|---|
DigestFileItem(String fieldName,
String contentType,
boolean isFormField,
String fileName,
int sizeThreshold,
File repository) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Returns the
X-Lockss-Content-Type header if present, otherwise the
normal Content-Type header. |
MessageDigest |
getDigest() |
OutputStream |
getOutputStream() |
protected File |
getTempFile()
Creates and returns a
File representing a uniquely
named temporary file in the configured repository path. |
delete, finalize, get, getCharSet, getDefaultCharset, getFieldName, getHeaders, getInputStream, getName, getSize, getStoreLocation, getString, getString, isFormField, isInMemory, setDefaultCharset, setFieldName, setFormField, setHeaders, toString, writepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface org.apache.commons.fileupload.FileItemgetOutputStream in class org.apache.commons.fileupload.disk.DiskFileItemIOExceptionpublic String getContentType()
X-Lockss-Content-Type header if present, otherwise the
normal Content-Type header. This is a workaround for the transport
of invalid Content-Types.getContentType in interface org.apache.commons.fileupload.FileItemgetContentType in class org.apache.commons.fileupload.disk.DiskFileItempublic MessageDigest getDigest()
protected File getTempFile()
File representing a uniquely
named temporary file in the configured repository path. The lifetime of
the file is tied to the lifetime of the FileItem instance;
the file will be deleted when the instance is garbage collected.
Note: Subclasses that override this method must ensure that they return the same File each time.
getTempFile in class org.apache.commons.fileupload.disk.DiskFileItemFile to be used for temporary storage.Copyright © 2000–2023 LOCKSS Program. All rights reserved.