public class InputStreamAttachmentResource extends Object implements AttachmentResource
| Constructor and Description |
|---|
InputStreamAttachmentResource(InputStream inputStream,
String filename,
String contentType,
long contentLength)
Constructor.
|
InputStreamAttachmentResource(InputStream inputStream,
String filename,
String contentType,
long contentLength,
String comment) |
InputStreamAttachmentResource(InputStream inputStream,
String filename,
String contentType,
long contentLength,
String comment,
boolean minorEdit) |
InputStreamAttachmentResource(InputStream inputStream,
String filename,
String contentType,
long contentLength,
String comment,
boolean minorEdit,
boolean hidden) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
boolean |
exists() |
String |
getComment() |
long |
getContentLength() |
String |
getContentType() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
URI |
getURI() |
URL |
getURL() |
boolean |
isHidden() |
boolean |
isMinorEdit() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
String |
toString() |
public InputStreamAttachmentResource(InputStream inputStream, String filename, String contentType, long contentLength)
inputStream - attachment streamfilename - name of attachment including extensioncontentType - attachment content/mime typecontentLength - length or size of the attachment streampublic InputStreamAttachmentResource(InputStream inputStream, String filename, String contentType, long contentLength, String comment)
public InputStreamAttachmentResource(InputStream inputStream, String filename, String contentType, long contentLength, String comment, boolean minorEdit)
public InputStreamAttachmentResource(InputStream inputStream, String filename, String contentType, long contentLength, String comment, boolean minorEdit, boolean hidden)
public String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic InputStream getInputStream()
getInputStream in interface org.springframework.core.io.InputStreamSourcepublic String getContentType()
getContentType in interface AttachmentResourcepublic long getContentLength()
getContentLength in interface AttachmentResourcepublic long contentLength()
contentLength in interface org.springframework.core.io.Resourcepublic boolean isMinorEdit()
isMinorEdit in interface AttachmentResourceAttachment.isMinorEdit())public boolean isHidden()
isHidden in interface AttachmentResourceAttachment.isHidden())public boolean exists()
exists in interface org.springframework.core.io.Resourcepublic boolean isOpen()
isOpen in interface org.springframework.core.io.Resourcepublic String getComment()
getComment in interface AttachmentResourcepublic URL getURL() throws IOException
getURL in interface org.springframework.core.io.ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface org.springframework.core.io.ResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative in interface org.springframework.core.io.ResourceIOExceptionpublic boolean isReadable()
isReadable in interface org.springframework.core.io.Resourcepublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface org.springframework.core.io.ResourceIOExceptionCopyright © 2003–2022 Atlassian. All rights reserved.