[
https://issues.apache.org/jira/browse/IO-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17275908#comment-17275908
]
Gary D. Gregory edited comment on IO-706 at 1/31/21, 3:09 PM:
--------------------------------------------------------------
[~belugabehr]
Thank you for your feedback and catching my typo! Fixed in git.
WRT the "Timer" style names, I did not want there to be the possiblity an
association with the java.util.Timer class.
I'm not sold on the "of" factory method. Anyone else care to comment? What does
it buy us? Saving 2 characters?
I thought about adding toString() initially but I would have made it a classic
debug style method that just dumps out instance variable, otherwise you have to
do something clever if you call it and close() has not been called yet. So for
now, I added the simplest styles toString().
Note that the reply of the get duration method is a Duration object.
was (Author: garydgregory):
[~belugabehr]
Thank you for your feedback and catching my typo! Fixed in git.
WRT the "Timer" style names, I did not want there to be the possiblity an
association with the java.util.Timer class.
I'm not sold on the "of" factory method name. Anyone else care to comment? What
does it buy us? Saving 2 characters?
I thought about adding toString() initially but I would have made it a classic
debug style method that just dumps out instance variable, otherwise you have to
do something clever if you call it and close() has not been called yet. So for
now, I added the simplest styles toString().
Note that the reply of the get duration method is a Duration object.
> TimedOutputStream/TimedInputStream
> -----------------------------------
>
> Key: IO-706
> URL: https://issues.apache.org/jira/browse/IO-706
> Project: Commons IO
> Issue Type: New Feature
> Components: Streams/Writers
> Reporter: David Mollitor
> Priority: Major
>
> Create a {{FilterInputStream}} {{FilterOutputStream}} that records the time
> it was opened (instantiated) and the time it was closed. Add method to
> return the delta so that users can request the amount of time required to
> read from (or write to) the underlying Stream.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)