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

accessing native query list using ui:repeat

jsf jpa nativequery

lets say i have a table test with columns id and name

How can pass value from MySQL to go template

mysql go

This struct to pass value to template

Using FsrmQuotaManager with a WCF service

c# wcf iis-7.5

I'm using a WCF service that is running on an IIS 7.5 (W2k8 R2). I use this service for getting quota information about the space of a specified web site on the same IIS.