public class LookupStreamResource extends Object
getLookupSupplier()
), and once completely (see
getInputSupplier()
). For the underlying input stream to be closed,
the input stream provided by getInputSupplier()
must be closed.Constructor and Description |
---|
LookupStreamResource(InputStream input,
URI location,
int lookupLimit)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
LocatableInputSupplier<? extends InputStream> |
getInputSupplier()
Get an input supplier that supplies the underlying stream, which can be
fully consumed only once.
|
LocatableInputSupplier<? extends InputStream> |
getLookupSupplier()
Get an input supplier that supplies streams that may only be read to a
certain amount of bytes.
|
public LookupStreamResource(InputStream input, URI location, int lookupLimit)
input
- the input streamlocation
- the location represented by the input stream, may be
null
lookupLimit
- the limit of bytes that may be read from a lookup
input streampublic LocatableInputSupplier<? extends InputStream> getLookupSupplier()
getInputSupplier()
.public LocatableInputSupplier<? extends InputStream> getInputSupplier()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a