us.zuercher.gpx2map.image.netpbm
Class NetpbmImageFactory.CanLoadLogicTarget

java.lang.Object
  extended by us.zuercher.gpx2map.image.netpbm.NetpbmImageFactory.CanLoadLogicTarget
All Implemented Interfaces:
NetpbmImageFactory.GzipRetryLogicTarget
Enclosing class:
NetpbmImageFactory

private class NetpbmImageFactory.CanLoadLogicTarget
extends Object
implements NetpbmImageFactory.GzipRetryLogicTarget

CanLoadLogicTarget implements NetpbmImageFactory.GzipRetryLogicTarget to retrieve the Netpbm magic number from an image file.


Constructor Summary
private NetpbmImageFactory.CanLoadLogicTarget()
           
 
Method Summary
 Object performAction(BufferedInputStream input, NetpbmImageFactory.ExceptionHolder exceptionHolder)
          Attempts to read a the magic number for a Netpbm image from the given stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetpbmImageFactory.CanLoadLogicTarget

private NetpbmImageFactory.CanLoadLogicTarget()
Method Detail

performAction

public Object performAction(BufferedInputStream input,
                            NetpbmImageFactory.ExceptionHolder exceptionHolder)
                     throws IOException
Attempts to read a the magic number for a Netpbm image from the given stream.

Specified by:
performAction in interface NetpbmImageFactory.GzipRetryLogicTarget
Parameters:
input - a BufferedInputStream that supports mark/reset.
exceptionHolder - not used
Returns:
a NetpbmImage
Throws:
IOException - if the stream cannot be read or doesn't support mark/reset