us.zuercher.gpx2map.image.netpbm
Class NetpbmImageFactory.CanLoadLogicTarget
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetpbmImageFactory.CanLoadLogicTarget
private NetpbmImageFactory.CanLoadLogicTarget()
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