| Modifier and Type | Class and Description |
|---|---|
| protected class | |
| public static record | |
| public static interface | AbstractRemoteResource.
An interface to provide a stream with a known (or unknown) size that
allows |
| Modifier and Type | Field and Description |
|---|---|
| private final AbstractRemoteResource. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractRemoteResource(AbstractRemoteResource.
|
| Modifier and Type | Method and Description |
|---|---|
| public T | call()
Implements java. Computes a result, or throws an exception if unable to do so. |
| protected abstract T |
| sizedStreamSupplier | back to summary |
|---|---|
| private final AbstractRemoteResource. | |
| AbstractRemoteResource | back to summary |
|---|---|
| protected AbstractRemoteResource(AbstractRemoteResource. | |
| call | back to summary |
|---|---|
| public T call() throws IOException Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
| processStream | back to summary |
|---|---|
| protected abstract T processStream(InputStream stream) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized int | read()
Overrides java. See
the general contract of the |
| public synchronized int | read(byte[] b, int off, int len)
Overrides java. Reads bytes from this byte-input stream into the specified byte array, starting at the given offset. |
| public int | read(byte[] b)
Overrides java. Reads up to |
| ProgressInputStream | back to summary |
|---|---|
| public ProgressInputStream(InputStream in) | |
| read | back to summary |
|---|---|
| public synchronized int read() throws IOException Overrides java. Doc from java. See
the general contract of the
| |
| read | back to summary |
|---|---|
| public synchronized int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads bytes from this byte-input stream into the specified byte array, starting at the given offset. This method implements the general contract of the corresponding
read on the underlying stream returns
-1 to indicate end-of-file then this method returns
-1. Otherwise, this method returns the number of bytes
actually read.
Subclasses of this class are encouraged, but not required, to attempt to read as many bytes as possible in the same fashion.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides java. Doc from java. Reads up to
| |
InputStream, cannot be null
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final InputStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public long | |
| public InputStream | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| size | back to summary |
|---|---|
| private final long size Record Component accessed by size(). the size of the stream, or -1 if unknown | |
| stream | back to summary |
|---|---|
| private final InputStream stream Record Component accessed by stream(). an | |
| SizedStream | back to summary |
|---|---|
| public SizedStream(InputStream stream, long size) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| size | back to summary |
|---|---|
| public long size() Record Component getter of size.
| |
| stream | back to summary |
|---|---|
| public InputStream stream() Record Component getter of stream.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
IOException to be thrown.
| Modifier and Type | Method and Description |
|---|---|
| public AbstractRemoteResource. |
| get | back to summary |
|---|---|
| public AbstractRemoteResource. | |