|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.att.Attachments
public class Attachments
Helper methods for dealing with Attachment
s.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
s
true
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 question
true
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
s
true
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 question
true
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
s
Attachment
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 for
Attachment
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 returned
Attachment
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
s
Attachment
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |