/** * Wraps the specified input object into a {@link ParserPipe} object so that it can be easily converted into * a stream or reader. * * @param input * The input. * <br>This can be any of the following types: * <ul> * <li><jk>null</jk> * <li>{@link InputStream} * <li><code><jk>byte</jk>[]</code> * <li>{@link File} * <li>{@link CharSequence} containing encoded bytes according to the {@link InputStreamParser#ISPARSER_binaryFormat} setting. * </ul> * @return * A new {@link ParserPipe} wrapper around the specified input object. */ @SuppressWarnings("resource") @Override /* ParserSession */ public final ParserPipe createPipe(Object input) { return setPipe(new ParserPipe(input, isDebug(), ctx.isAutoCloseStreams(), ctx.isUnbuffered(), ctx.getBinaryFormat())); }
/** * Wraps the specified input object into a {@link ParserPipe} object so that it can be easily converted into * a stream or reader. * * @param input * The input. * <br>This can be any of the following types: * <ul> * <li><jk>null</jk> * <li>{@link InputStream} * <li><code><jk>byte</jk>[]</code> * <li>{@link File} * <li>{@link CharSequence} containing encoded bytes according to the {@link InputStreamParser#ISPARSER_binaryFormat} setting. * </ul> * @return * A new {@link ParserPipe} wrapper around the specified input object. */ @SuppressWarnings("resource") @Override /* ParserSession */ public final ParserPipe createPipe(Object input) { return setPipe(new ParserPipe(input, isDebug(), ctx.isAutoCloseStreams(), ctx.isUnbuffered(), ctx.getBinaryFormat())); }
/** * Wraps the specified input object into a {@link ParserPipe} object so that it can be easily converted into * a stream or reader. * * @param input * The input. * <br>This can be any of the following types: * <ul> * <li><jk>null</jk> * <li>{@link InputStream} * <li><code><jk>byte</jk>[]</code> * <li>{@link File} * <li>{@link CharSequence} containing encoded bytes according to the {@link InputStreamParser#ISPARSER_binaryFormat} setting. * </ul> * @return * A new {@link ParserPipe} wrapper around the specified input object. */ @SuppressWarnings("resource") @Override /* ParserSession */ public final ParserPipe createPipe(Object input) { return setPipe(new ParserPipe(input, isDebug(), ctx.isAutoCloseStreams(), ctx.isUnbuffered(), ctx.getBinaryFormat())); }