org.autoplot.hapiserver.IdleClockOutputStream

Debugging output stream which times idle periods between write calls.

IdleClockOutputStream( java.io.OutputStream out )


close

close( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


getBitsPerSecond

getBitsPerSecond( ) → long

return the bits per second.

Returns:

the bits per second.

[search for examples] [view on GitHub] [view on old javadoc]


getFirstByteMilli

getFirstByteMilli( ) → long

return time delay to the first byte sent.

Returns:

time delay to the first byte sent.

[search for examples] [view on GitHub] [view on old javadoc]


getMaxIdleTime

getMaxIdleTime( ) → long

return the maximum time elapsed between write calls, in milliseconds.

Returns:

the maximum time elapsed between write calls, in milliseconds.

[search for examples] [view on GitHub] [view on old javadoc]


getStatsOneLine

getStatsOneLine( ) → String

return all the stats at once.

Returns:

all the stats at once.

[search for examples] [view on GitHub] [view on old javadoc]


getTotalBytes

getTotalBytes( ) → long

return the maximum time elapsed between write calls, in milliseconds.

Returns:

the maximum time elapsed between write calls, in milliseconds.

[search for examples] [view on GitHub] [view on old javadoc]


write

write( int b ) → void

Parameters

b - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]

write( byte[] b, int off, int len ) → void