Java SAXParser - keep InputStream open

I've a BufferedInputStream from which I want to parse XML with SAXParser but then reuse it again (eg. mark(int) & reset()). However this stream is closed in parse() method. Is it possible to somehow tell SAXParser to leave it open? The last resort is to wrap this stream with un-closeable stream.

Thank you.


How about something like:

class WontCloseBufferedInputStream extends BufferedInputStream {
  public void close () {
    // Do nothing.

  public void reallyClose() {
    super.close ();

Need Your Help

Resizing the canvas with CSS skews up mouse action

html5 canvas css3

So I have this fiddle which totally explains my issue.

How does Module bootstrap work for default module?

twitter-bootstrap zend-framework module

I've setup my application with two modules, one for Admin and other for the rest of application called default. Then I've created a Bootstrap file for Admin module, and when I've tried to set the

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.