Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to abort a FilterInputStream?

 
olze oli
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

following problem:
i used httpclient in a application but i had to switch to htmlunit
httpclient uses the EofSensorInputStream which has a "abort()" method which really aborts a stream
htmlunit uses FilterInputStream which has a close() method but it just closes the stream and in the background it gets still downloaded
is there any way to abort the stream? its a media file which is opened this way (and if i click "next" in my app it hangs until the stream is finished downloading...)
 
olze oli
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
they switched to ByteArrayInputStream which works fine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!