public class Attachments extends Object
Attachment
s.Modifier and Type | Method and Description |
---|---|
static SeekableInputStream |
createDefaultStream(Attachment attachment) |
static Collection<Attachment> |
getAttachments(Document document,
DocumentLayer layer)
This method gathers all the
Attachment s which are bound to any PageSegment that
is in the given DocumentLayer of any Page in the given Document . |
static Collection<Attachment> |
getAttachments(Page page,
DocumentLayer layer)
Retrieves the
Attachment s which are bound to the PageSegment found in the given
Page at the given DocumentLayer |
static Collection<Attachment> |
getDefaultLayerAttachments(Document document)
This method gathers all the
Attachment s which are bound to any PageSegment that
is in the default DocumentLayer (DocumentLayer.DEFAULT ) of any Page in
the given Document . |
static Collection<Attachment> |
getDefaultLayerAttachments(Page page)
Retrieves the
Attachment s which are bound to the PageSegment found in the given
Page 's default layer (DocumentLayer.DEFAULT ). |
static boolean |
hasAttachments(Document document,
DocumentLayer layer) |
static boolean |
hasAttachments(Page page,
DocumentLayer layer) |
static boolean |
hasDefaultLayerAttachments(Document document) |
static boolean |
hasDefaultLayerAttachments(Page page) |
public static boolean hasAttachments(Document document, DocumentLayer layer)
document
- the Document
in questionlayer
- the DocumentLayer
in which to find the PageSegment
which are
searched for Attachment
strue
if there is at least one Attachment
bound to a
PageSegment
in the given layer of one of the Page
s contained in the
given Document
; false
otherwise.public static boolean hasDefaultLayerAttachments(Document document)
document
- the Document
in questiontrue
if there is at least one Attachment
bound to a
PageSegment
in the default layer (DocumentLayer.DEFAULT
) of one of the
Page
s contained in the given Document
; false
otherwise.public static boolean hasAttachments(Page page, DocumentLayer layer)
page
- the Page
in questionlayer
- the DocumentLayer
in which to find the PageSegment
which are
searched for Attachment
strue
if there is a PageSegment
in the given DocumentLayer
of the given Page
and at least one Attachment
is bound to this
PageSegment
; false
otherwise.public static boolean hasDefaultLayerAttachments(Page page)
page
- the Page
in questiontrue
if there is a PageSegment
in the given Page
's default
layer (DocumentLayer.DEFAULT
) and at least one Attachment
is bound to
it; false
otherwise.public static Collection<Attachment> getAttachments(Document document, DocumentLayer layer)
Attachment
s which are bound to any PageSegment
that
is in the given DocumentLayer
of any Page
in the given Document
.document
- the Document
to find Attachment
s forlayer
- the DocumentLayer
in which to look for Attachment
sAttachment
s of the given Document's PageSegment
s in the given
DocumentLayer
public static Collection<Attachment> getDefaultLayerAttachments(Document document)
Attachment
s which are bound to any PageSegment
that
is in the default DocumentLayer
(DocumentLayer.DEFAULT
) of any Page
in
the given Document
.document
- the Document
to retrieve attachments forAttachment
s of the given Document's PageSegment
s in the default
DocumentLayer
public static Collection<Attachment> getAttachments(Page page, DocumentLayer layer)
Attachment
s which are bound to the PageSegment
found in the given
Page
at the given DocumentLayer
page
- the page of which to get Attachment
slayer
- the DocumentLayer
for which Attachment
s are to be returnedAttachment
s bound to the given Page
's given layer, or null
if none are bound or if there is no PageSegment
in the given layer.public static Collection<Attachment> getDefaultLayerAttachments(Page page)
Attachment
s which are bound to the PageSegment
found in the given
Page
's default layer (DocumentLayer.DEFAULT
).page
- the page of which to get the default layer's Attachment
sAttachment
s bound to the given page's default layer, or null
if
none are bound or if there is no PageSegment
in the default layer.public static SeekableInputStream createDefaultStream(Attachment attachment) throws IOException
IOException
Copyright © 2024 levigo holding gmbh. All rights reserved.