• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting SequenceInputStream to File  RSS feed

 
Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After creating a SequenceInputStream from several File(s), I now need to call a class sending this SequenceInputStream as a File. How do I convert the SequenceInputStream to a File?
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Invoke read() on the SequenceInputStream and invoke write() on the OutputStream of your choice. Consult the Java Tutorial for more information.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!