|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITimedDocumentHandling
Handler feature interface to be implemented by IAttoHandler
implementations
that time their execution.
All times are taken in nanoseconds.
Method Summary | |
---|---|
long |
getEndTimeNanos()
Return the current time (in nanoseconds) obtained when parsing ends. |
long |
getStartTimeNanos()
Return the current time (in nanoseconds) obtained when parsing starts. |
long |
getTotalTimeNanos()
Return the difference (in nanoseconds) between parsing start and end times. |
void |
handleDocumentEnd(long endTimeNanos,
long totalTimeNanos)
Called at the end of document parsing, adding timing information. |
void |
handleDocumentStart(long startTimeNanos)
Called at the beginning of document parsing, adding timing information. |
Method Detail |
---|
void handleDocumentStart(long startTimeNanos) throws AttoParseException
Called at the beginning of document parsing, adding timing information.
startTimeNanos
- the current time (in nanoseconds) obtained when parsing starts.
AttoParseException
void handleDocumentEnd(long endTimeNanos, long totalTimeNanos) throws AttoParseException
Called at the end of document parsing, adding timing information.
endTimeNanos
- the current time (in nanoseconds) obtained when parsing ends.totalTimeNanos
- the difference between current times at the start and end of
parsing (in nanoseconds)
AttoParseException
long getStartTimeNanos()
Return the current time (in nanoseconds) obtained when parsing starts.
long getEndTimeNanos()
Return the current time (in nanoseconds) obtained when parsing ends.
long getTotalTimeNanos()
Return the difference (in nanoseconds) between parsing start and end times.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |