Package Summary Overview Summary

### method:read() [CHANGED]
### read public int read() throws IOException Description copied from interfaceclass: `ImageInputStreamImageInputStreamImpl` Reads a single byte from the stream and returns it as an `integerint` between 0 and 255. If the end of the streamEOF is reached, `-1` is returned. Subclasses must provide an implementation for this method. The subclass implementation should update the stream position before exiting. The bit offset within the stream ismust be reset to zero before the read occurs. Specified by: `read` in interface `ImageInputStream` Specified by: `read` in class `ImageInputStreamImpl` Returns: athe value of the next byte value fromin the stream, as an int, or `-1` to indicateif EOF is reached. Throws: `IOException` - if an I/O error occursthe stream has been closed.
### read public int read() throws IOException Description copied from interface: `ImageInputStream` Reads a single byte from the stream and returns it as an integer between 0 and 255. If the end of the stream is reached, -1 is returned. The bit offset within the stream is reset to zero before the read occurs. Specified by: `read` in interface `ImageInputStream` Specified by: `read` in class `ImageInputStreamImpl` Returns: a byte value from the stream, as an int, or -1 to indicate EOF. Throws: `IOException` - if an I/O error occurs. | ### read public int read() throws IOException Description copied from class: `ImageInputStreamImpl` Reads a single byte from the stream and returns it as an `int` between 0 and 255. If EOF is reached, `-1` is returned. Subclasses must provide an implementation for this method. The subclass implementation should update the stream position before exiting. The bit offset within the stream must be reset to zero before the read occurs. Specified by: `read` in interface `ImageInputStream` Specified by: `read` in class `ImageInputStreamImpl` Returns: the value of the next byte in the stream, or `-1` if EOF is reached. Throws: `IOException` - if the stream has been closed.

### method:read(byte[],int,int) [CHANGED]
### read public int read (byte[] b, int off, int len) throws IOException Description copied from interfaceclass: `ImageInputStreamImageInputStreamImpl` Reads up to `len` bytes from the stream, and stores them into `b` starting at index `off`. The number of bytes read is returned.If no bytes can be read because the end of the stream has been reached, `-1` is returned. The bit offset within the stream ismust be reset to zero before the read occurs. Subclasses must provide an implementation for this method. The subclass implementation should update the stream position before exiting. Specified by: `read` in interface `ImageInputStream` Specified by: `read` in class `ImageInputStreamImpl` Parameters: `b` - an array of bytes to be written to. `off` - the starting position within `b` to write to. `len` - the maximum number of `byte` sbytes to read. Returns: the number of bytes actually read, or `-1` to indicate EOF. Throws: `IOException` - if an I/O error occurs.
### read public int read (byte[] b, int off, int len) throws IOException Description copied from interface: `ImageInputStream` Reads up to `len` bytes from the stream, and stores them into `b` starting at index `off`. The number of bytes read is returned. If no bytes can be read because the end of the stream has been reached, `-1` is returned. The bit offset within the stream is reset to zero before the read occurs. Specified by: `read` in interface `ImageInputStream` Specified by: `read` in class `ImageInputStreamImpl` Parameters: `b` - an array of bytes to be written to. `off` - the starting position within `b` to write to. `len` - the maximum number of `byte`s to read. Returns: the number of bytes actually read, or `-1` to indicate EOF. Throws: `IOException` - if an I/O error occurs. | ### read public int read (byte[] b, int off, int len) throws IOException Description copied from class: `ImageInputStreamImpl` Reads up to `len` bytes from the stream, and stores them into `b` starting at index `off`. If no bytes can be read because the end of the stream has been reached, `-1` is returned. The bit offset within the stream must be reset to zero before the read occurs. Subclasses must provide an implementation for this method. The subclass implementation should update the stream position before exiting. Specified by: `read` in interface `ImageInputStream` Specified by: `read` in class `ImageInputStreamImpl` Parameters: `b` - an array of bytes to be written to. `off` - the starting position within `b` to write to. `len` - the maximum number of bytes to read. Returns: the number of bytes actually read, or `-1` to indicate EOF. Throws: `IOException` - if an I/O error occurs.

### method:length() [CHANGED]
### length public long length() Description copied from interfaceclass: `ImageInputStreamImageInputStreamImpl` Returns `-1L` to indicate that the totalstream has unknown length. Subclasses must override this method to provide actual length of the stream, if known. Otherwise, `-1` is returnedinformation. Specified by: `length` in interface `ImageInputStream` Overrides: `length` in class `ImageInputStreamImpl` Returns: a `long` containing the-1L to indicate unknown length of the stream, if known, or else `-1`.
### length public long length() Description copied from interface: `ImageInputStream` Returns the total length of the stream, if known. Otherwise, `-1` is returned. Specified by: `length` in interface `ImageInputStream` Overrides: `length` in class `ImageInputStreamImpl` Returns: a `long` containing the length of the stream, if known, or else `-1`. | ### length public long length() Description copied from class: `ImageInputStreamImpl` Returns `-1L` to indicate that the stream has unknown length. Subclasses must override this method to provide actual length information. Specified by: `length` in interface `ImageInputStream` Overrides: `length` in class `ImageInputStreamImpl` Returns: -1L to indicate unknown length.