us.zuercher.gpx2map.image.netpbm
Interface NetpbmImageFactory.GzipRetryLogicTarget

All Known Implementing Classes:
NetpbmImageFactory.CanLoadLogicTarget, NetpbmImageFactory.LoadImageLogicTarget
Enclosing class:
NetpbmImageFactory

private static interface NetpbmImageFactory.GzipRetryLogicTarget


Method Summary
 Object performAction(BufferedInputStream input, NetpbmImageFactory.ExceptionHolder exceptionHolder)
          Perform the desired action as a result of opening a Netpbm image stream.
 

Method Detail

performAction

Object performAction(BufferedInputStream input,
                     NetpbmImageFactory.ExceptionHolder exceptionHolder)
                     throws IOException
Perform the desired action as a result of opening a Netpbm image stream.

Parameters:
input - a BufferedInputStream on the image file or URL
exceptionHolder - a holder for exceptions related to loading the image -- exceptions stored here are indicative of a problem with the image data. If the data cannot be read at all, an IOException should be thrown directly.
Returns:
an Image or null if the file was wrong format or an exception was stored in the holder
Throws:
IOException - if the file cannot be read at all or if the input doesn't support mark/reset