/** * Construct a new LoadServiceInputStream by reading all bytes from the * specified stream. * * You are responsible for the lifecycle of the given stream after this * constructor has been called (i.e. it will not be closed for you). * * @param stream the stream from which to read bytes * @throws IOException if the reading causes an IOException */ public LoadServiceResourceInputStream(InputStream stream) throws IOException { super(NULL_BYTE_ARRAY); bufferEntireStream(stream); }
/** * Construct a new LoadServiceInputStream by reading all bytes from the * specified stream. * * You are responsible for the lifecycle of the given stream after this * constructor has been called (i.e. it will not be closed for you). * * @param stream the stream from which to read bytes * @throws IOException if the reading causes an IOException */ public LoadServiceResourceInputStream(InputStream stream) throws IOException { super(new byte[0]); bufferEntireStream(stream); }
/** * Construct a new LoadServiceInputStream by reading all bytes from the * specified stream. * * You are responsible for the lifecycle of the given stream after this * constructor has been called (i.e. it will not be closed for you). * * @param stream the stream from which to read bytes * @throws IOException if the reading causes an IOException */ public LoadServiceResourceInputStream(InputStream stream) throws IOException { super(NULL_BYTE_ARRAY); bufferEntireStream(stream); }
/** * Construct a new LoadServiceInputStream by reading all bytes from the * specified stream. * * You are responsible for the lifecycle of the given stream after this * constructor has been called (i.e. it will not be closed for you). * * @param stream the stream from which to read bytes * @throws IOException if the reading causes an IOException */ public LoadServiceResourceInputStream(InputStream stream) throws IOException { super(new byte[0]); bufferEntireStream(stream); }