public class ImageryReader extends java.lang.Object implements java.io.Closeable
Modifier and Type | Class and Description |
---|---|
private static class |
ImageryReader.Parser |
private static class |
ImageryReader.State |
Modifier and Type | Field and Description |
---|---|
private CachedFile |
cachedFile |
private boolean |
fastFail |
private java.lang.String |
source |
Constructor and Description |
---|
ImageryReader(java.lang.String source) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.List<ImageryInfo> |
parse() |
void |
setFastFail(boolean fastFail)
Sets whether opening HTTP connections should fail fast, i.e., whether a
low connect timeout should be used. |
private final java.lang.String source
private CachedFile cachedFile
private boolean fastFail
public ImageryReader(java.lang.String source)
public java.util.List<ImageryInfo> parse() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
public void setFastFail(boolean fastFail)
low connect timeout
should be used.fastFail
- whether opening HTTP connections should fail fastCachedFile.setFastFail(boolean)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException