Package com.levigo.jadice.document
Interface PageSegmentSource
-
- All Superinterfaces:
MetadataProvider,PropertiesProvider
public interface PageSegmentSource extends PropertiesProvider, MetadataProvider
A PageSegmentSource describes the origin of a page segment. SinceDocuments 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,AbstractPageSegments are usually derived from a single stream only. However, there are PageSegments which are not derived from a source stream at all. These PageSegments returnnullfrom a call to theirAbstractPageSegment.getSource()method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FormatgetFormat()Return the format description for this page segment.MetadatagetMetadata()Return the stream's meta-data.Map<String,Object>getProperties()Return the stream's user properties.SourceIDgetSourceID()Return thisPageSegmentSource's identifying object.SeekableInputStreamgetStream()Return the stream from which the page segment was read.
-
-
-
Method Detail
-
getStream
SeekableInputStream getStream()
Return the stream from which the page segment was read. Returnnullif the page segment was not read from a stream.- Returns:
- the stream
-
getFormat
Format getFormat()
Return the format description for this page segment.- Returns:
- String a format description
-
getMetadata
Metadata getMetadata()
Return the stream's meta-data.- Specified by:
getMetadatain interfaceMetadataProvider- Returns:
- the stream's meta-data.
-
getProperties
Map<String,Object> getProperties()
Return the stream's user properties.- Specified by:
getPropertiesin interfacePropertiesProvider- Returns:
- a map of user properties
- See Also:
PropertiesProvider
-
getSourceID
SourceID getSourceID()
Return thisPageSegmentSource's identifying object.- Returns:
- an instance of
SourceIDwhich uniquely identifies thisPageSegmentSourceamong allPageSegmentSources.
-
-