Class LoadServiceResourceInputStream

java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.jruby.runtime.load.LoadServiceResourceInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class LoadServiceResourceInputStream extends ByteArrayInputStream
  • Constructor Details

    • LoadServiceResourceInputStream

      public LoadServiceResourceInputStream(byte[] bytes)
      Construct a LoadServiceResourceInputStream from the given bytes.
      Parameters:
      bytes - the bytes to wrap in this stream
    • LoadServiceResourceInputStream

      public LoadServiceResourceInputStream(InputStream stream) throws IOException
      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).
      Parameters:
      stream - the stream from which to read bytes
      Throws:
      IOException - if the reading causes an IOException
  • Method Details

    • getBytes

      public byte[] getBytes()