Class AttachmentDataFile<T extends com.atlassian.dc.filestore.api.FileStore.Path>
- java.lang.Object
-
- com.atlassian.confluence.impl.pages.attachments.filesystem.AttachmentDataFile<T>
-
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource
public class AttachmentDataFile<T extends com.atlassian.dc.filestore.api.FileStore.Path> extends Object implements org.springframework.core.io.InputStreamSource
Represents a single attachment data file, plus its metadata.- Since:
- 7.12
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)booleanexists()static AttachmentDataFile<com.atlassian.dc.filestore.api.compat.FilesystemPath>getAttachmentDataFile(com.atlassian.dc.filestore.api.compat.FilesystemPath dir, int attachmentVersion, AttachmentDataStreamType dataStreamType)Deprecated.since 8.1.0 as it is used only in a deprecated v003 attachment formatstatic <T extends com.atlassian.dc.filestore.api.FileStore.Path>
AttachmentDataFile<T>getAttachmentDataFileV004(T basePath, long attachmentId, Integer attachmentVersion, AttachmentDataStreamType dataStreamType)static <T extends com.atlassian.dc.filestore.api.FileStore.Path>
AttachmentDataFile<T>getAttachmentDataFileV004(T basePath, AttachmentRef attachment, AttachmentDataStreamType dataStreamType)TgetFilePath()InputStreamgetInputStream()inthashCode()StringtoString()
-
-
-
Method Detail
-
getAttachmentDataFile
@Deprecated public static AttachmentDataFile<com.atlassian.dc.filestore.api.compat.FilesystemPath> getAttachmentDataFile(com.atlassian.dc.filestore.api.compat.FilesystemPath dir, int attachmentVersion, AttachmentDataStreamType dataStreamType)
Deprecated.since 8.1.0 as it is used only in a deprecated v003 attachment format
-
getAttachmentDataFileV004
public static <T extends com.atlassian.dc.filestore.api.FileStore.Path> AttachmentDataFile<T> getAttachmentDataFileV004(T basePath, AttachmentRef attachment, AttachmentDataStreamType dataStreamType)
-
getAttachmentDataFileV004
public static <T extends com.atlassian.dc.filestore.api.FileStore.Path> AttachmentDataFile<T> getAttachmentDataFileV004(T basePath, long attachmentId, Integer attachmentVersion, AttachmentDataStreamType dataStreamType)
-
getFilePath
public T getFilePath()
-
exists
public boolean exists()
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOException
-
-