52

Me: I have an input stream!
Library: I want a file.
Me: I can see your code, you will convert it to an input stream! Don't any of your constructors take an input stream?
Library: No. I want a file. Okay, you can also include an encoding.
Me: I don't care about encoding.
Library: Fine, just give me the file then.
Me: You mean I have to somehow convert my input stream into an actual file so I can give it to you?
Library: You're gradually catching on, yes.
Me: Can I add a new constructor myself that takes an input stream?
Library: Sure! Good luck in getting it approved by the maintainers and the new jar distributed everywhere, including Maven Central before your deadline.
Me: Fine, I'll just rearchitect everything so I can give you an actual file.
Library: And then everything will be fine.
Me:

Comments
  • 2
    Hmm, use lambda stream to dump it to file chunks then feed it to the beast. Should be quite easy with lambdas.
  • 2
    Huh, didn't know you could do that. Ok, will give that a try and I'll report back. Thanks!
  • 2
    This happens to me all the time. What's so hard about accepting a stream??
Add Comment