Top Fields Constructors Methods
org.jruby.runtime.load

public Class LoadServiceResourceInputStream

extends ByteArrayInputStream
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream

Field Summary

Modifier and TypeField and Description
private static final byte[]
private static final int
Inherited from java.io.ByteArrayInputStream:
bufcountmarkpos

Constructor Summary

AccessConstructor and Description
public
LoadServiceResourceInputStream(byte[]
the bytes to wrap in this stream
bytes
)

Construct a LoadServiceResourceInputStream from the given bytes.

public
LoadServiceResourceInputStream(InputStream
the stream from which to read bytes
stream
)

Construct a new LoadServiceInputStream by reading all bytes from the specified stream.

Method Summary

Modifier and TypeMethod and Description
private void
public byte[]
Inherited from java.io.ByteArrayInputStream:
availableclosemarkmarkSupportedreadreadreadAllBytesreadNBytesresetskiptransferTo

Field Detail

NULL_BYTE_ARRAYback to summary
private static final byte[] NULL_BYTE_ARRAY
READ_CHUNK_SIZEback to summary
private static final int READ_CHUNK_SIZE

Constructor Detail

LoadServiceResourceInputStreamback to summary
public LoadServiceResourceInputStream(byte[] bytes)

Construct a LoadServiceResourceInputStream from the given bytes.

Parameters
bytes:byte[]

the bytes to wrap in this stream

LoadServiceResourceInputStreamback to summary
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:InputStream

the stream from which to read bytes

Exceptions
IOException:
if the reading causes an IOException

Method Detail

bufferEntireStreamback to summary
private void bufferEntireStream(InputStream stream) throws IOException
getBytesback to summary
public byte[] getBytes()