|
||||||||||
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,
int line,
int col)
Called at the end of document parsing, adding timing information. |
void |
handleDocumentStart(long startTimeNanos,
int line,
int col)
Called at the beginning of document parsing, adding timing information. |
Method Detail |
---|
void handleDocumentStart(long startTimeNanos, int line, int col) throws AttoParseException
Called at the beginning of document parsing, adding timing information.
startTimeNanos
- the current time (in nanoseconds) obtained when parsing starts.line
- the line of the document where parsing starts (usually number 1)col
- the column of the document where parsing starts (usually number 1)
AttoParseException
void handleDocumentEnd(long endTimeNanos, long totalTimeNanos, int line, int col) 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)line
- the line of the document where parsing ends (usually the last one)col
- the column of the document where the parsing ends (usually the last one)
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 |