Modifier and Type | Field and Description |
---|---|
pack-priv int | |
pack-priv int | |
pack-priv long | |
pack-priv ImageInputStream |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected void | finalize()
Overrides javax. Finalizes this object prior to garbage collection. |
public long | length()
Overrides javax. Implements javax. Returns |
public int | read()
Implements abstract javax. Implements javax. Reads a single byte from the stream and returns it as an
|
public int | read(byte[]
an array of bytes to be written to. b, int the starting position within off, int b to write to.the maximum number of bytes to read. len)Implements abstract javax. Implements javax. Reads up to |
public void | seek(long
a pos)long containing the desired file
pointer position.Overrides javax. Implements javax. Sets the current stream position to the desired location. |
length | back to summary |
---|---|
pack-priv int length |
startingLength | back to summary |
---|---|
pack-priv int startingLength |
startingPos | back to summary |
---|---|
pack-priv long startingPos |
stream | back to summary |
---|---|
pack-priv ImageInputStream stream |
SubImageInputStream | back to summary |
---|---|
public SubImageInputStream(ImageInputStream stream, int length) throws IOException |
finalize | back to summary |
---|---|
protected void finalize() throws Throwable Overrides javax. Doc from javax. Finalizes this object prior to garbage collection. The
|
length | back to summary |
---|---|
public long length() Overrides javax. Implements javax. Doc from javax. Returns
|
read | back to summary |
---|---|
public int read() throws IOException Implements abstract javax. Implements javax. Doc from javax. Reads a single byte from the stream and returns it as an
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.
|
read | back to summary |
---|---|
public int read(byte[] b, int off, int len) throws IOException Implements abstract javax. Implements javax. Doc from javax. Reads up to 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.
|
seek | back to summary |
---|---|
public void seek(long pos) throws IOException Overrides javax. Implements javax. Doc from javax. Sets the current stream position to the desired location. The next read will occur at this location. The bit offset is set to 0. An It is legal to seek past the end of the file;
a
|