Class Overview
Represents an attachment resource that is supported by an input stream.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.confluence.core.AttachmentResource
|
From interface
org.springframework.core.io.InputStreamSource
|
From interface
org.springframework.core.io.Resource
|
abstract
Resource
|
createRelative(String arg0)
|
|
abstract
boolean
|
exists()
|
|
abstract
String
|
getDescription()
|
|
abstract
File
|
getFile()
|
|
abstract
String
|
getFilename()
|
|
abstract
URI
|
getURI()
|
|
abstract
URL
|
getURL()
|
|
abstract
boolean
|
isOpen()
|
|
abstract
boolean
|
isReadable()
|
|
abstract
long
|
lastModified()
|
|
Public Constructors
public
InputStreamAttachmentResource
(InputStream inputStream, String filename, String contentType, long contentLength)
Parameters
| inputStream
| attachment stream |
| filename
| name of attachment including extension |
| contentType
| attachment content/mime type |
| contentLength
| length or size of the attachment stream
|
Public Methods
public
Resource
createRelative
(String relativePath)
public
long
getContentLength
()
public
String
getContentType
()
public
String
getDescription
()
public
boolean
isReadable
()
public
long
lastModified
()