[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441674 
] 
            
Joerg Schaible commented on IO-94:
----------------------------------

Yes, but not *that* easy :)

But what I really needed and wrote once was a NullInputStream of a specific 
capacity delivering bytes of value 0 (because of assembling a data stream on 
the fly for a format with 'holes'). Maybe such an implementation with an 
arbitrary byte value might be added as ConstantInputStream with a certain 
capacity. Something like this should be similar/equal to the MockInputStream  
but does not sound so determined for test ;-)

> New Mock InputStream & Writer implementations
> ---------------------------------------------
>
>                 Key: IO-94
>                 URL: http://issues.apache.org/jira/browse/IO-94
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Niall Pemberton
>         Assigned To: Niall Pemberton
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: MockInputStream.java, MockInputStreamTestCase.java
>
>
> I have created a MockInputStream which can be plugged in for testing parts of 
> systems where the data doesn't matter - the main use I've had for it was 
> testing large files - without actually having the InputStream process large 
> amounts of bytes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to