|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Resolver
A resolver interface that can resolver various types of addresses and specific protocol numbers and types to a human readable name. The resolver will do an appropriate type of look up is appropriate for a given protocol, to try and map a binary entity to a human assigned and readable one.
| Nested Class Summary | |
|---|---|
static class |
Resolver.ResolverType
Type of resolver that can be registered with JRegistry. |
| Field Summary | |
|---|---|
static java.lang.String |
RESOLVER_SEARCH_PATH_PROPERTY
|
| Method Summary | |
|---|---|
boolean |
canBeResolved(byte[] address)
Checks if a mapping exists or can be made. |
void |
clearCache()
Resets the cache to its defaults. |
void |
initializeIfNeeded()
This method is called everytime the resolver is requested from JRegistry. |
boolean |
isCached(byte[] address)
Checks if resolver already has a mapping made for this particular address. |
int |
loadCache(java.net.URL url)
Attempts to load the cache from the given URL. |
java.lang.String |
resolve(byte[] address)
Attempts to resole an address to a human readable form. |
int |
saveCache()
Forces cache contents to be saved to the default cache file. |
| Field Detail |
|---|
static final java.lang.String RESOLVER_SEARCH_PATH_PROPERTY
| Method Detail |
|---|
boolean canBeResolved(byte[] address)
address - address to check mapping for
void clearCache()
void initializeIfNeeded()
boolean isCached(byte[] address)
address - address to check for
int loadCache(java.net.URL url)
throws java.io.IOException
url - URL of the resource containing the database to load
java.io.IOException - any IO errorsjava.lang.String resolve(byte[] address)
address - address to try and resolve
int saveCache()
throws java.io.IOException
java.io.IOException - any IO errors during save
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||