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.Resource
public String getFilename()
getFilename
in interface org.springframework.core.io.Resource
public InputStream getInputStream()
getInputStream
in interface org.springframework.core.io.InputStreamSource
public String getContentType()
getContentType
in interface AttachmentResource
public long getContentLength()
getContentLength
in interface AttachmentResource
public long contentLength()
contentLength
in interface org.springframework.core.io.Resource
public boolean isMinorEdit()
isMinorEdit
in interface AttachmentResource
Attachment.isMinorEdit()
)public boolean isHidden()
isHidden
in interface AttachmentResource
Attachment.isHidden()
)public boolean exists()
exists
in interface org.springframework.core.io.Resource
public boolean isOpen()
isOpen
in interface org.springframework.core.io.Resource
public String getComment()
getComment
in interface AttachmentResource
public URL getURL() throws IOException
getURL
in interface org.springframework.core.io.Resource
IOException
public File getFile() throws IOException
getFile
in interface org.springframework.core.io.Resource
IOException
public org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative
in interface org.springframework.core.io.Resource
IOException
public boolean isReadable()
isReadable
in interface org.springframework.core.io.Resource
public URI getURI() throws IOException
getURI
in interface org.springframework.core.io.Resource
IOException
public long lastModified() throws IOException
lastModified
in interface org.springframework.core.io.Resource
IOException
Copyright © 2003–2020 Atlassian. All rights reserved.