public class

InputStreamAttachmentResource

extends Object
implements AttachmentResource
java.lang.Object
   ↳ com.atlassian.confluence.core.InputStreamAttachmentResource

Class Overview

Represents an attachment resource that is supported by an input stream.

Summary

Public Constructors
InputStreamAttachmentResource(InputStream inputStream, String filename, String contentType, long contentLength)
Constructor.
InputStreamAttachmentResource(InputStream inputStream, String filename, String contentType, long contentLength, String comment)
Public Methods
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 isOpen()
boolean isReadable()
long lastModified()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.core.AttachmentResource
From interface org.springframework.core.io.InputStreamSource
From interface org.springframework.core.io.Resource

Public Constructors

public InputStreamAttachmentResource (InputStream inputStream, String filename, String contentType, long contentLength)

Constructor.

Parameters
inputStream attachment stream
filename name of attachment including extension
contentType attachment content/mime type
contentLength length or size of the attachment stream

public InputStreamAttachmentResource (InputStream inputStream, String filename, String contentType, long contentLength, String comment)

Public Methods

public Resource createRelative (String relativePath)

Throws
IOException

public boolean exists ()

public String getComment ()

public long getContentLength ()

public String getContentType ()

public String getDescription ()

public File getFile ()

Throws
IOException

public String getFilename ()

public InputStream getInputStream ()

public URI getURI ()

Throws
IOException

public URL getURL ()

Throws
IOException

public boolean isOpen ()

public boolean isReadable ()

public long lastModified ()

Throws
IOException

public String toString ()