Package nokogiri.internals

Examples of nokogiri.internals.UncloseableInputStream


        } else {
          // use the default options RECOVER | NONET
          options = new ParserContext.Options(2048 | 1);
        }

        InputStream in = new UncloseableInputStream(new IOInputStream(args[0]));
        reader.setInput(context, in, url, options);
        return reader;
    }
View Full Code Here


        } else {
          // use the default options RECOVER | NONET
          options = new ParserContext.Options(2048 | 1);
        }
        IRubyObject stringIO = NokogiriService.getNokogiriClassCache(context.getRuntime()).get("StringIO").newInstance(context, args[0], Block.NULL_BLOCK);
        InputStream in = new UncloseableInputStream(new IOInputStream(stringIO));
        reader.setInput(context, in, url, options);
        return reader;
    }
View Full Code Here

TOP

Related Classes of nokogiri.internals.UncloseableInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.