public abstract class AbstractHasFormat extends AbstractSCIFIOPlugin implements HasFormat
HasFormat.HasFormat,
FormatService| Constructor and Description |
|---|
AbstractHasFormat() |
| Modifier and Type | Method and Description |
|---|---|
protected org.scijava.io.location.BrowsableLocation |
asBrowsableLocation(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> handle)
Convenience overload of
asBrowsableLocation(Location) that
operates on a handle. |
protected org.scijava.io.location.BrowsableLocation |
asBrowsableLocation(org.scijava.io.location.Location loc)
Safely casts a
Location to a BrowsableLocation, throwing a
FormatException if the cast is not possible. |
Format |
getFormat()
Provides a link back to the format associated with this component.
|
String |
getFormatName()
Helper method for accessing
Format.getFormatName(). |
getVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic Format getFormat()
HasFormatpublic String getFormatName()
HasFormatFormat.getFormatName(). Some
Formats may be polymorphic and wish to provide additional name
information based on the specific dataset open - this method allows
overriding of that behavior.getFormatName in interface HasFormatprotected org.scijava.io.location.BrowsableLocation asBrowsableLocation(org.scijava.io.location.Location loc) throws FormatException
Location to a BrowsableLocation, throwing a
FormatException if the cast is not possible.loc - the location to cast to BrowsableLocationFormatExceptionprotected org.scijava.io.location.BrowsableLocation asBrowsableLocation(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> handle) throws FormatException
asBrowsableLocation(Location) that
operates on a handle.handle - FormatExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.