|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.user.actions.TemporaryUploadedPicture
public class TemporaryUploadedPicture
Constructor Summary | |
---|---|
TemporaryUploadedPicture(String originalFileName,
int sourceWidth,
int sourceHeight,
String thumbnailFileName,
int thumbnailWidth,
int thumbnailHeight)
|
Method Summary | |
---|---|
void |
cleanup()
|
File |
getOriginalFile()
|
String |
getOriginalFileName()
|
static TemporaryUploadedPicture |
getPicture(File sourceFile,
String fileName,
String owningUserName)
Returns an object representing the original and thumbnail image |
static TemporaryUploadedPicture |
getPicture(InputStream source,
String fileName,
String owningUserName)
Returns an object representing the original and thumbnail image |
int |
getSourceHeight()
|
int |
getSourceWidth()
|
File |
getThumbnailFile()
|
String |
getThumbnailFileDownloadPath()
Doesn't have url encoding, unlike getThumbnailFileDownloadUrl() . |
String |
getThumbnailFileDownloadUrl()
Just like getThumbnailFileDownloadPath() but with the filename Url Encoded. |
int |
getThumbnailHeight()
|
int |
getThumbnailWidth()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemporaryUploadedPicture(String originalFileName, int sourceWidth, int sourceHeight, String thumbnailFileName, int thumbnailWidth, int thumbnailHeight)
Method Detail |
---|
@Nullable public static TemporaryUploadedPicture getPicture(File sourceFile, String fileName, String owningUserName) throws IOException
sourceFile
- the image uploaded by the userfileName
- a name for this image. It has no effect in the computation.owningUserName
- login of the user who uploaded the file
IOException
- in case of I/O exception@Nullable public static TemporaryUploadedPicture getPicture(InputStream source, String fileName, String owningUserName) throws IOException
source
- the image uploaded by the userfileName
- a name for this image. It has no effect in the computation.owningUserName
- login of the user who uploaded the file
IOException
- in case of I/O exceptionpublic File getOriginalFile()
public File getThumbnailFile()
public String getThumbnailFileDownloadPath()
getThumbnailFileDownloadUrl()
.
public String getThumbnailFileDownloadUrl()
getThumbnailFileDownloadPath()
but with the filename Url Encoded.
public int getThumbnailWidth()
public int getThumbnailHeight()
public int getSourceWidth()
public int getSourceHeight()
public String getOriginalFileName()
public void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |