au.id.jericho.lib.html

Class OverlappingOutputSegmentsException


public class OverlappingOutputSegmentsException
extends RuntimeException

Signals that overlapping output segments have been detected in the OutputDocument.

This exception is only thrown when an attempt is made to generate the output of the OutputDocument.

See Also:
OutputDocument.toString(), OutputDocument.writeTo(Writer)

Method Summary

OutputSegment[]
getOverlappingOutputSegments()
Returns the two overlapping output segments in an array.

Method Details

getOverlappingOutputSegments

public OutputSegment[] getOverlappingOutputSegments()
Returns the two overlapping output segments in an array.

Only the first two detected overlapping segments are returned, even if other overlapping segments were added to the OutputDocument.

Returns:
the two overlapping output segments in an array.