|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.core.io.supplier.LookupStreamResource
public class LookupStreamResource
Provides input supplier based on a single input stream, that allow to consume
it multiple times up to a limit in read bytes (see
getLookupSupplier()
), and once completely (see
getInputSupplier()
). For the underlying input stream to be closed,
the input stream provided by getInputSupplier()
must be closed.
Constructor Summary | |
---|---|
LookupStreamResource(InputStream input,
URI location,
int lookupLimit)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 streamMethod Detail |
---|
public LocatableInputSupplier<? extends InputStream> getLookupSupplier()
getInputSupplier()
.
public LocatableInputSupplier<? extends InputStream> getInputSupplier()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |