This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Converting SequenceInputStream to File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Converting SequenceInputStream to File" Watch "Converting SequenceInputStream to File" New topic
Author

Converting SequenceInputStream to File

Mary Taylor
Ranch Hand

Joined: Sep 11, 2000
Posts: 319
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

Joined: Oct 29, 2001
Posts: 8836
    
    7

Invoke read() on the SequenceInputStream and invoke write() on the OutputStream of your choice. Consult the Java Tutorial for more information.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting SequenceInputStream to File
 
Similar Threads
SequenceInputStream performance
Combining Text Files
Question about Enumeration?
Split and Merge large zip files
Problem in setBinaryStream when using SequenceInputStream