|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFactory
ReferencingFactory
NTv2GridShiftFactory
public class NTv2GridShiftFactory
Loads and caches NTv2 grid files. Thisthat incorporates a soft cache mechanism to keep grids in
memory when first loaded. It also checks NTv2 grid file format in #isNTv2Grid(String)
method.
Field Summary | |
---|---|
protected static Logger |
LOGGER
Logger. |
Fields inherited from class AbstractFactory |
---|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority |
Constructor Summary | |
---|---|
NTv2GridShiftFactory()
Constructs a factory with the default priority. |
|
NTv2GridShiftFactory(int priority)
Constructs an instance using the specified priority level. |
Method Summary | |
---|---|
GridShiftFile |
createNTv2Grid(URL gridLocation)
Creates a NTv2 Grid. |
boolean |
isNTv2Grid(URL location)
Performs a NTv2 grid file lookup given its name, and checks for file format correctness. |
protected boolean |
isNTv2GridFileValid(URL url)
Checks if a given resource is a valid NTv2 file without fully loading it. |
Methods inherited from class ReferencingFactory |
---|
ensureNonNull, getVendor |
Methods inherited from class AbstractFactory |
---|
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Factory |
---|
getImplementationHints |
Field Detail |
---|
protected static final Logger LOGGER
Constructor Detail |
---|
public NTv2GridShiftFactory()
public NTv2GridShiftFactory(int priority)
priority
- The priority for this factory, as a number between
MINIMUM_PRIORITY
and
MAXIMUM_PRIORITY
inclusive.Method Detail |
---|
public boolean isNTv2Grid(URL location)
name
- The NTv2 grid file name
true
if file exists and is valid, false
otherwisepublic GridShiftFile createNTv2Grid(URL gridLocation) throws FactoryException
name
- The NTv2 grid name
FactoryException
- if grid cannot be createdprotected boolean isNTv2GridFileValid(URL url)
warning level
.
location
- the NTv2 file absolute path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |