Class AttachmentDataFile
- java.lang.Object
-
- com.atlassian.confluence.impl.pages.attachments.filesystem.AttachmentDataFile
-
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource
public class AttachmentDataFile 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 boolean
equals(Object o)
static AttachmentDataFile
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 AttachmentDataFile
getAttachmentDataFileV004(com.atlassian.dc.filestore.api.compat.FilesystemPath dir, long attachmentId, Integer attachmentVersion, AttachmentDataStreamType dataStreamType)
static AttachmentDataFile
getAttachmentDataFileV004(com.atlassian.dc.filestore.api.compat.FilesystemPath dir, AttachmentRef attachment, AttachmentDataStreamType dataStreamType)
com.atlassian.dc.filestore.api.compat.FilesystemPath
getFilePath()
InputStream
getInputStream()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getAttachmentDataFile
@Deprecated public static AttachmentDataFile 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 AttachmentDataFile getAttachmentDataFileV004(com.atlassian.dc.filestore.api.compat.FilesystemPath dir, AttachmentRef attachment, AttachmentDataStreamType dataStreamType)
-
getAttachmentDataFileV004
public static AttachmentDataFile getAttachmentDataFileV004(com.atlassian.dc.filestore.api.compat.FilesystemPath dir, long attachmentId, Integer attachmentVersion, AttachmentDataStreamType dataStreamType)
-
getFilePath
public com.atlassian.dc.filestore.api.compat.FilesystemPath getFilePath()
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceorg.springframework.core.io.InputStreamSource
- Throws:
IOException
-
-