us.zuercher.gpx2map.image.netpbm
Class NetpbmImageFactory.GzipRetryLogic
java.lang.Object
us.zuercher.gpx2map.image.netpbm.NetpbmImageFactory.GzipRetryLogic
- Enclosing class:
- NetpbmImageFactory
private class NetpbmImageFactory.GzipRetryLogic
- extends Object
GzipRetryLogic encapsulates the logic of reading Netpbm files that
may or may not be gzipped.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
imageFile
private final File imageFile
imageUrl
private final URL imageUrl
NetpbmImageFactory.GzipRetryLogic
NetpbmImageFactory.GzipRetryLogic(File imageFile)
NetpbmImageFactory.GzipRetryLogic
NetpbmImageFactory.GzipRetryLogic(URL imageUrl)
getFileName
String getFileName()
guessGzip
private boolean guessGzip()
makeInputStream
private BufferedInputStream makeInputStream(boolean useGzip)
throws IOException
- Throws:
IOException
execute
Object execute(NetpbmImageFactory.GzipRetryLogicTarget target)
throws IOException
- Throws:
IOException