|
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.DefaultInputSupplier
public class DefaultInputSupplier
Default I/O supplier based on an URI
Field Summary | |
---|---|
static String |
SCHEME_LOCAL
Name of the scheme where resolving locally through Resources is
preferred. |
Constructor Summary | |
---|---|
DefaultInputSupplier(URI location)
Create a default I/O supplier based on the given URI |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
InputStream |
getInput()
|
URI |
getLocation()
Get the location |
int |
hashCode()
|
protected InputStream |
resolve(URI location)
Resolve the given location and open an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SCHEME_LOCAL
Resources
is
preferred.
Constructor Detail |
---|
public DefaultInputSupplier(URI location)
location
- the location URIMethod Detail |
---|
public InputStream getInput() throws IOException
getInput
in interface com.google.common.io.InputSupplier<InputStream>
IOException
InputSupplier.getInput()
protected InputStream resolve(URI location) throws IOException
location
- the location
IOException
- if an error occurs opening the streampublic URI getLocation()
Locatable
getLocation
in interface Locatable
null
Locatable.getLocation()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |