|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageSegmentSource
A PageSegmentSource describes the origin of a page segment.
Since Document
s are not engaged in a 1:1 relation with a single source stream from which
the document was loaded, a document may have many source streams from which its contents are
derived. In contrast to that, AbstractPageSegment
s are usually derived from a single
stream only. However, there are PageSegments which are not derived from a source stream at all.
These PageSegments return null
from a call to their
AbstractPageSegment.getSource()
method.
Method Summary | |
---|---|
Format |
getFormat()
Return the format description for this page segment. |
Metadata |
getMetadata()
Return the stream's meta-data. |
Map<String,Object> |
getProperties()
Return the stream's user properties. |
SourceID |
getSourceID()
Return this PageSegmentSource 's identifying object. |
SeekableInputStream |
getStream()
Return the stream from which the page segment was read. |
Method Detail |
---|
SeekableInputStream getStream()
null
if the page
segment was not read from a stream.
Format getFormat()
Metadata getMetadata()
getMetadata
in interface MetadataProvider
Map<String,Object> getProperties()
getProperties
in interface PropertiesProvider
PropertiesProvider
SourceID getSourceID()
PageSegmentSource
's identifying object.
SourceID
which uniquely identifies this
PageSegmentSource
among all PageSegmentSource
s.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |